Select to view content in your preferred language

Floating Panes

1987
11
05-07-2014 06:03 AM
MathewSuran
Regular Contributor
Is it possible to have 2 separate floating panes in a custom webviewer at 2 separate times? 

I want one Floating pane at startup (which I have done already) that you have to close to view the map, basically acting as a disclaimer.  Once in the main map, I have a slider bar (don't know if that is the correct name) representing 5 different layers to be displayed.  This is currently in the left pane.

Is there a way to take that slider bar and turn it into another floating pane?  I have searched all over the forums on how to set up a basic floating pane, but everyone has a different way of doing it.  All of which I can not get to work with what I have.  We basically outsourced to a company to build this webviewer.  Long story short, I am now trying to figure out what/how they did things and have been tasked to complete the project, since they could not get it done.

I'm sure I didn't give enough info so let me know what else you need to better assist in answering.  Thanks!
0 Kudos
11 Replies
BenFousek
Deactivated User
To programmatically create a tp, create a div for the tp:
[HTML]<div style="position:absolute; right:20px; top:10px; z-Index:999;">
  <div id="myTitlePane"></div>
</div>[/HTML]

The second argument in the constructor is simply the id (srcNodeRef) to create the tp.
var tp1 = new dijit.TitlePane({
  //options
}, 'myTitlePane');
//always call startup
tp1.startup();


dojo tp docs:
http://dojotoolkit.org/reference-guide/1.9/dijit/TitlePane.html
http://dojotoolkit.org/api/?qs=1.9/dijit/TitlePane
0 Kudos
MathewSuran
Regular Contributor
Is that legacy or amd?
0 Kudos