Select to view content in your preferred language

Widgets in sub-menu operations in header controller

2754
11
Jump to solution
12-26-2016 10:32 AM
GilbertoMatos
Frequent Contributor

Hello!

I have the following widgets in the header controller, exactly in this order: layers, buffer, print, measure, legend, base maps and about.

I need to modify the header controller widget so that the Buffer, Print and Measure widgets are in a sub-menu called Operations.

How should I proceed? I tried several ways, even put a div with the fixed menu, but there was no way, because I can not open the widgets if it does this way.

Thanks for any help.

Gilberto.

0 Kudos
11 Replies
RobertScheitlin__GISP
MVP Emeritus

Gilberto,

   This seems to work:

_resize: function()
{
    var box = html.getContentBox(this.domNode);

    //by default, we show all elements
    this._showSwitchableElements(['title', 'links', 'subtitle']);

    // this.timeoutHandle = setTimeout(lang.hitch(this, function(){
    //   this._createIconNodes(box);
    // }), 50);

    if(!this.IconNodeCreated){
        this._createIconNodes(box);
        this.IconNodeCreated = true
    }
.....
GilbertoMatos
Frequent Contributor

Robert,

Thank you very much. It really was a simple mistake, as you mentioned. I'm marking the correct answer.

Thank you!
Happy New Year!

Gilberto.

0 Kudos