<div dojoType="dijit.TitlePane" title="Switch Basemap" closable="false" open="false" src="basemap.png" style="float:right; margin-right:10px;"> <div dojoType="dijit.layout.ContentPane" style="width:380px; height:280px; overflow:auto;"> <div id="basemapGallery" > </div></div> </div>
Hi,I want to insert my image instead of titlepane default image, can i do it by modifying my div tag. I am trying the below code but this is not working for me. Could you please help me in this scenario. I don't want to do it by modifying my css<div dojoType="dijit/TitlePane" data-dojo-props="title: '<img src=images/6.0/newdropdown.jpg>';region: 'top'" id='feedContainer' style="width:100%;background:green;text-align:center" >
//Toggles function basemapToggle() { toggler = new dojo.fx.Toggler({ node: "basemaptoggle", showFunc: dojo.fx.wipeIn, showDuration: 1000, hideDuration: 1000, hideFunc: dojo.fx.wipeOut }) } dojo.addOnLoad(basemapToggle);
<div id="basemapbutton"> <button dojoType="dijit.form.Button" baseClass="tomButton" title="Switch Basemap"> <img src="images/imgBaseMap.png"/> <script type="dojo/method" event="onClick"> toggler[(dojo.style("basemaptoggle","display") == "none") ? 'show':'hide'](); </script> </button> <div id="basemaptoggle" dojoType="dijit.layout.ContentPane" style="#900;display: none;"> <div id="basemapGallery"> </div> </div> </div>
I don't think I'm explaining what I am trying to do very well. Essentially I want to completely replace the gray boxes (and arrows) so that when you click on the custom image it opens the panes.I'm trying to copy what is done in a majority of the local government apps and put icons in the place of the gray buttons.I've tried converting to a dijit.form.ToggleButton but couldn't get it to work.
.claro .dijitTitlePane .dijitClosed .dijitArrowNode { background-position: -14px 0; } .claro .dijitTitlePane .dijitArrowNode { background-image: url("images/spriteArrows.png"); background-repeat: no-repeat; height: 8px; width: 7px; }
.claro .dijitTitlePane .dijitClosed .dijitArrowNode { background-position: 0px 0; background-image: url("yourOpenImage"); height: 8px; // change with your image dimensions width: 7px; // change with your image dimensions } .claro .dijitTitlePane .dijitArrowNode { background-image: url("yourCloseImage"); background-repeat: no-repeat; height: 8px; // change with your image dimensions width: 7px; // change with your image dimensions }
.claro .dijitTitlePaneTitle { background-image: url("yourimage"); }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.