DHTMLX Docs & Samples Explorer

Working in "select" mode

mode xml attibute, set to select to set select mode for corresponding button
from script myToolbar.addButtonSelect(id, pos, text, opts, imgEnabled, imgDisabled, renderSelect, openAll, maxOpen, mode);
Source
<script type="text/javascript" src="../../codebase/dhtmlxcommon.js"></script>
<script type="text/javascript" src="../../codebase/dhtmlxtoolbar.js"></script>
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxtoolbar_dhx_skyblue.css"></link>
 
<div id="toolbarObj"></div>
<div style="margin-top: 200px;"></div>
<b>mode</b> xml attibute, set to <b>select</b> to set select mode for corresponding button
<br>
<b>from script</b> myToolbar.addButtonSelect(id, pos, text, opts, imgEnabled, imgDisabled, renderSelect, openAll, maxOpen, <b>mode</b>);
<script>
var sel2 = document.getElementById("sel2");
var toolbar = new dhtmlXToolbarObject("toolbarObj");
toolbar.setIconsPath("../common/imgs/");
toolbar.loadXML("../common/dhxtoolbar_buttonselect3.xml?etc=" + new Date().getTime());
</script>