Slider manipulation

</> Source
<!DOCTYPE html>
	<title>Slider manipulation</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/fonts/font_roboto/roboto.css"/>
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
		div#toolbarObj {
			margin-top: 30px;
		var sel;
		var myToolbar;
		function doOnLoad() {
			sel = document.getElementById("sel");
			myToolbar = new dhtmlXToolbarObject({
				parent: "toolbarObj",
				icons_path: "../common/imgs/",
				xml: "../common/dhxtoolbar_slider.xml",
				onload: updateList
		function getId() {
			var id = sel.options[sel.selectedIndex].value;
			return id;
		function show() {
			var id = getId();
		function hide() {
			var id = getId();
		function isVisible() {
			var id = getId();
		function updateList() {
			sel.options.length = 0;
				if (myToolbar.getType(itemId) == "slider") {
					sel.options.add(new Option(itemId, itemId));
<body onload="doOnLoad();">
	<div id="toolbarObj"></div>
	<div style="margin-top: 30px;">
		<select id="sel"></select>
		<input type="button" value="Show" onclick="show();">
		<input type="button" value="Hide" onclick="hide();">
		<input type="button" value="Is Visible" onclick="isVisible();">


Check documentation to learn how to use the components and easily implement them in your applications.