AnsweredAssumed Answered

Create a button on tollbar to open left Pane

Question asked by yeow on Jul 21, 2014
Latest reply on Jul 21, 2014 by timw1984

I set startExpanded to false when map first open, see below:

<div id="leftPane" data-dojo-type="dojox.layout.ExpandoPane" title="Menu" data-dojo-props="title: 'Menu', splitter:true, region:'left',startExpanded:false" style="width:400px;">

Then I create a button on my toolbar in order to open the left Pane but can't figure out how to do so.

Here is my button code:

<div dojoType="dijit.form.Button" id="search1" onClick="dijit.byId('acc').selectChild('searchSection',true);" data-dojo-props="iconClass:'searchIcon'">Search</div>

Thank you.

Outcomes