Webix subbar implementation

edited October 2018 in Technical questions

Hi

I have a webix spreadsheet with a custom subbar. The custom subbar has 2 elements (buttons) as defined below

subbar =
{
        view: "toolbar",
        id:"dummy_toolbar",
        css: "subbar-spreadsheet",
        elements: [
    {
            view: "button",
            id:"dummy1",
            name: "dummy1",
            width: 150,
            label: "Dummy",
            css: "subbar-spreadsheet",
            tooltip: "Dummy"
            },{
            view: "button",
            id:"dummy2",
            name: "dummy2",
            width: 150,
            label: "Dummy",
            css: "subbar-spreadsheet",
            tooltip: "Dummy"
            }
      ]
   }
}

As you can see, I am giving them ids dummy1 and dummy2. Based on certain events that happen on certain cells or selection of certain cells I want to either show or hide either of the buttons or the subbar (id is dummy_toolbar) itself

To do this I am trying to retrieve the toolbar(subbar) and/or the elements(buttons).
But I am not able to retrieve them inside the events with their ids. When I checked on development console, I found that they the components themselves have been initialized with system ids like $button350 or $toolbar23.

Why am I not able to get a handle to the botton or toolbar with the id that has been provided in its definition.

Kindly help me with this situation. Do let me know any possible solutions.

Thanks

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!