Create a button on tollbar to open left Pane

644
1
07-21-2014 07:11 AM
weeyeo
by
New Contributor II

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.

0 Kudos
1 Reply
TimWitt2
MVP Alum

This might help you.

0 Kudos