Smart M.App discussions

Looking for answers in regards to M.Apps, M.App Exchange or M.App Studio? Smart M.App Tech Discussion board is where you can search, ask your questions and assist others by sharing your knowledge. Join the conversation, connect, contribute and share.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 125
Registered: ‎10-16-2015
Accepted Solution

separator in gsp.ui.toolbar and documentation gsp.ui

I'd like to add a separator in the gsp.ui.toolbar to create groups of buttons. Is this possible?

Related question: is there up-to-date documentation about gsp, because this link is really outdated

Highlighted
Technical Evangelist
Posts: 1,382
Registered: ‎09-11-2015

Re: separator in gsp.ui.toolbar and documentation gsp.ui

Hi Arjen,

 

I am afraid only by providing your own CSS class and image encoded in base64 format in the CSS style. Something like:

gsp.ui.toolbar.add({
    id: "divider1",
    className: "toolbarDivider"
});
.toolbarDivider {
    background-image: url(data:image/gif;base64,R0lGODlhDAAMANUAAAE...iAJBigNFAwBAXwYRAIpwBfQQA7)
}
Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Highlighted
Frequent Contributor
Posts: 125
Registered: ‎10-16-2015

Re: separator in gsp.ui.toolbar and documentation gsp.ui

Hi Jan,

 

Yes, I've done something like that. I was a bit dissapointed it needed an id, but otherwise it worked fine.

 

What about my other question about the much-needed update of the documentation?

Right now I have to dive into the debugger to see which methods seem to be available to gsp.ui, but that doesn't quit cut it

Highlighted
Technical Evangelist
Posts: 1,382
Registered: ‎09-11-2015

Re: separator in gsp.ui.toolbar and documentation gsp.ui

I can see there's a task for that in development's backlog so the API documentation update is forthcoming. Unfortunately I cannot tell when this will happen.

Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial