expandcollaps
_doOnLoad()
alias of setIconsPath
Object: dhtmlXToolbarObject

File required:dhtmlxtoolbar.js
addButton(id, pos, text, imgEnabled, imgDisabled)
adds a button to webbar
Object: dhtmlXToolbarObject

File required:dhtmlxtoolbar.js
  • id - id of a button
  • pos - position of a button
  • text - text for a button (null for no text)
  • imgEnabled - image for enabled state (null for no image)
  • imgDisabled - image for desabled state (null for no image)
  • addButtonSelect(id, pos, text, opts, imgEnabled, imgDisabled)
    adds a select button to webbar
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • id - id of a select button
  • pos - position of a select button
  • text - text for a select button (null for no text)
  • opts - listed options for a select button
  • imgEnabled - image for enabled state (null for no image)
  • imgDisabled - image for desabled state (null for no image)
  • addButtonTwoState(id, pos, text, imgEnabled, imgDisabled)
    adds a two-state button to webbar
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • id - id of a two-state button
  • pos - position of a two-state button
  • text - text for a two-state button (null for no text)
  • imgEnabled - image for enabled state (null for no image)
  • imgDisabled - image for desabled state (null for no image)
  • addInput(id, pos, value, width)
    adds an input item to webbar
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • id - id of an input item
  • pos - position of an input item
  • value - value (text) in an input item by the default
  • width - width of an input item (px)
  • addListOption(parentId, optionId, pos, type, text, img)
    adds a listed option to a select button
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • pos - position of a listed option
  • type - type of a listed option (button|separator)
  • text - text for a listed option
  • img - image for a listed option
  • addSeparator(id, pos)
    adds a separator to webbar
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • id - id of a separator
  • pos - position of a separator
  • addSlider(id, pos, len, valueMin, valueMax, valueNow, textMin, textMax, tip)
    adds a slider to webbar
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • id - id of a slider
  • pos - position of a slider
  • len - length (width) of a slider (px)
  • valueMin - minimal available value of a slider
  • valueMax - maximal available value of a slider
  • valueNow - initial current value of a slider
  • textMin - label for minimal value side (on the left side)
  • textMax - label for maximal value side (on the right side)
  • tip - tooltip template (%v will replaced with current value)
  • addText(id, pos, text)
    adds a text item to webbar
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • id - id of a text item
  • pos - position of a text item
  • text - text for a text item
  • clearItemImage(itemId)
    removes an image of an item in enabled state
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • clearItemImageDis(itemId)
    removes an image of an item in disabled state
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • clearListOptionImage(parentId, optionId)
    removes an image (if exists) of a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • disableItem(itemId)
    disables a specified item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item to disable
  • disableListOption(parentId, optionId)
    disables a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • enableItem(itemId)
    enables a specified item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item to enable
  • enableListOption(parentId, optionId)
    enables a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • forEachItem(handler)
    iterator, calls user handler for each item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • handler - user function, will take item id as an argument
  • forEachListOption(parentId, handler)
    calls user defined handler for each listed option of parentId
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • handler - user defined function, listed option id will passed as an argument
  • getAllListOptions(parentId)
    returns array with ids of all listed options for parentId
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • getItemState(itemId)
    returns current state of a two-state button
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a two-state item to check
  • getItemText(itemId)
    return cureent item's text
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • getItemToolTip(itemId)
    return current item's tooltip
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • getItemToolTipTemplate(itemId)
    returns a current tooltip template of a slider
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a slider
  • getListOptionImage(parentId, optionId)
    returns an image of a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • getListOptionPosition(parentId, optionId)
    returns a position of a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • getListOptionSelected(parentId)
    returns selected listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • getListOptionText(parentId, optionId)
    returns a text of a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • getListOptionToolTip(parentId, optionId)
    returns a tooltip of a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • getMaxValue(itemId)
    returns current maximal value and label of a slider
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a slider
  • getMinValue(itemId)
    return current minimal value and label of a slider
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a slider
  • getPosition(itemId)
    returns a current position of an item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • getType(itemId)
    return item type by item id
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId
  • getTypeExt(itemId)
    return extended item type by item id (button select node)
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId
  • getValue(itemId)
    returns a current value of a slider or an input item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a slider or an input item
  • getWidth(itemId)
    returns a current width of an input item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an input item
  • hideItem(itemId)
    hides a specified item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item to hide
  • hideListOption(parentId, optionId)
    hides a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • isEnabled(itemId)
    returns true if a specified item is enabled
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item to check
  • isListOptionEnabled(parentId, optionId)
    return true if a listed option is enabled
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • isListOptionVisible(parentId, optionId)
    return true if a listed option is visible
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • isVisible(itemId)
    returns true if a specified item is visible
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item to check
  • loadXML(xmlFile, onLoadFunction)
    loads data to object from xml file
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • xmlFile - file with dta to load
  • onLoadFunction - function to call after data will loaded
  • loadXMLString(xmlString, onLoadFunction)
    loads data to object from xml string
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • xmlString - xml string with data to load
  • onLoadFunction - function to call after data will loaded
  • removeItem(itemId)
    completely removes an item for a webbar
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • removeListOption(parentId, optionId)
    completely removes a listed option from a select button
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • setIconsPath(path)
    set path to used images
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • path - path to images on harddisk
  • setItemImage(itemId, url)
    sets an image for an item in enabled state
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • url - url of an image
  • setItemImageDis(itemId, url)
    sets an image for an item in disabled state
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • url - url of an image
  • setItemState(itemId, state)
    sets a pressed/released state for a two-state button
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a two-state item
  • state - state, true for pressed, false for released
  • setItemText(itemId, text)
    sets new text for an item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • text - new text for an item
  • setItemToolTip(itemId, tip)
    sets a tooltip for an item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • tip - tooltip (empty for clear)
  • setItemToolTipTemplate(itemId, template)
    sets a tooltip template for a slider
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a slider
  • template - tooltip template (%v will replaced with current value)
  • setListOptionImage(parentId, optionId, img)
    sets an image for a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • img - image for a listed option
  • setListOptionPosition(parentId, optionId, pos)
    sets a position of a listed option (moves listed option)
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • pos - position of a listed option
  • setListOptionSelected(parentId, optionId)
    sets listed option selected
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • setListOptionText(parentId, optionId, text)
    sets a text for a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • text - text for a listed option
  • setListOptionToolTip(parentId, optionId, tip)
    sets a tooltip for a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option
  • tip - tooltip for a listed option
  • setMaxValue(itemId, value, label)
    sets maximal value and label for a slider
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a slider
  • value - value (int)
  • label - label for value (empty for no label)
  • setMinValue(itemId, value, label)
    sets minimal value and label for a slider
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a slider
  • value - value (int)
  • label - label for value (empty for no label)
  • setPosition(itemId, pos)
    sets a new position for an item (moves item to desired position)
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item
  • pos - new position
  • setValue(itemId, value, callEvent)
    sets a value for a slider or an input item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of a slider or an input item
  • value - value (int for slider, any for input item)
  • setWidth(itemId, width)
    sets a width for an text/input/buttonSelect item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an text/input/buttonSelect item
  • width - new width (px)
  • showItem(itemId)
    shows a specified item
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • itemId - id of an item to show
  • showListOption(parentId, optionId)
    shows a listed option
    Object: dhtmlXToolbarObject

    File required:dhtmlxtoolbar.js
  • parentId - id of a select button
  • optionId - id of a listed option