expandcollaps

dhtmlXProtobarObject object API

disableItem(itemId)
disable toolbar button
Topic(s):
File required:dhtmlxprotobar.js
  • itemId - item id
  • enableItem(itemId)
    enable toolbar button
    Topic(s):
    File required:dhtmlxprotobar.js
  • itemId - item id
  • getItem(itemId)
    return item object by id
    Topic(s):
    File required:dhtmlxprotobar.js
  • itemId - item id
  • hideBar()
    hide toolbar
    Topic(s):
    File required:dhtmlxprotobar.js
    hideButtons(idList)
    hide toolbar buttons
    Topic(s):
    File required:dhtmlxprotobar.js
  • idList - list of items's ids, separated by comma
  • hideItem(itemId)
    hide toolbar button
    Topic(s):
    File required:dhtmlxprotobar.js
  • itemId - item id
  • loadXML(file,afterCall)
    load XML from file
    Topic(s):
    File required:dhtmlxprotobar.js
  • file - file name
  • afterCall - function which will be called after xml loading
  • loadXMLFor(file,itemId)
    load XML from file
    Topic(s):
    File required:dhtmlxprotobar.js
  • file - file name
  • itemId - if of item for which xml requested
  • afterCall - function which will be called after loading
  • loadXMLString(xmlString,afterCall)
    load XML from string
    Topic(s):
    File required:dhtmlxprotobar.js
  • xmlString - string contining XML
  • afterCall - function which will be called after xml loading
  • resetBar(idList)
    hide all items, show only items which ids in list
    Topic(s):
    File required:dhtmlxprotobar.js
  • idList - list of id's, separated by comma
  • setBarAlign(align)
    set toolbar buttons alignment (allowed - 'left','center','right','top','middle','bottom')
    Topic(s):
    File required:dhtmlxprotobar.js
  • align - buttons alignment
  • setBarSize(width,height)
    set toolbar size
    Topic(s):
    File required:dhtmlxprotobar.js
  • width - toolbar width
  • height - toolbar height
  • setGfxPath(path)
    set path to system images
    Topic(s):
    File required:dhtmlxprotobar.js
  • path - relative path to images
  • setItemAction(id,action)
    set item individual action
    Topic(s):
    File required:dhtmlxprotobar.js
  • id - item identificator
  • action - js function called on item selection
  • setOnClickHandler(func)
    set default action
    Topic(s):
    File required:dhtmlxprotobar.js
  • action - set default action
  • setOnHideHandler(func)
    set action hadler on toolbar hiding
    Topic(s):
    File required:dhtmlxprotobar.js
  • func - user defined function
  • setOnShowHandler(func)
    set action hadler on toolbar showing
    Topic(s):
    File required:dhtmlxprotobar.js
  • func - user defined function
  • setTitleText(newText)
    set toolbar tittle
    Topic(s):
    File required:dhtmlxprotobar.js
  • name - new tittle, shown on toolbar
  • showBar()
    show toolbar
    Topic(s):
    File required:dhtmlxprotobar.js
    showButtons(idList)
    show toolbar buttons
    Topic(s):
    File required:dhtmlxprotobar.js
  • idList - list of items's ids, separated by comma
  • showItem(id)
    show toolbar button
    Topic(s):
    File required:dhtmlxprotobar.js
  • id - item id
  • dhtmlXToolbarObject object API

    addItem(item,pos)
    add item to toolbar
    Topic(s):
    File required:dhtmlxtoolbar.js
  • item - dhtmlXButton object
  • pos - item position
  • getItemByPosition(position)
    return item object by position
    Topic(s):
    File required:dhtmlxtoolbar.js
  • position - item position
  • hideItemByPosition(position)
    hide toolbar button
    Topic(s):
    File required:dhtmlxtoolbar.js
  • position - item position
  • removeItemById(itemId)
    remove item
    Topic(s):
    File required:dhtmlxtoolbar.js
  • itemId - item id
  • removeItemByPosition(position)
    remove item
    Topic(s):
    File required:dhtmlxtoolbar.js
  • position - item position
  • setOnLoadingEnd(func) [Standard]
    set function called after xml loading/parsing ended

    EventName:onXMLLoadingEnd
    event fired simultaneously with ending XML parsing, new items already available in toolbar
  • toolbar object
  • Topic(s):
    File required:dhtmlxtoolbar.js
  • func - event handling function
  • setToolbarCSS(table,title,button,text)
    set toolbar classes
    Topic(s):
    File required:dhtmlxtoolbar.js
  • table - css class for toolbar container
  • title - css class for toolbar title
  • button - css class for button
  • text - css class for button text
  • dhxButtonFactory object API

    dhtmlXImageButtonObject object API

    dhtmlXDividerYObject object API

    dhtmlXDividerXObject object API

    dhtmlXImageTextButtonObject object API

    setText(newText)
    set button text
    Topic(s):
    File required:dhtmlxtoolbar.js
  • newText - new text [ HTML allowed ]
  • dhtmlXImageTextButtonXPObject object API

    dhtmlXSelectButtonObject object API

    addOption(value,display)
    add option to dropdown
    Topic(s):
    File required:dhtmlxtoolbar.js
  • value - string value (sended to action function)
  • display - displayed string
  • clearOptions()
    clears options from selectbox
    Topic(s):
    File required:dhtmlxtoolbar.js
    disable()
    disable object
    Topic(s):
    File required:dhtmlxtoolbar.js
    enable()
    enable object
    Topic(s):
    File required:dhtmlxtoolbar.js
    getIndexByValue(value)
    return string index in dropdown by value (return -1 if string with given value not found)
    Topic(s):
    File required:dhtmlxtoolbar.js
  • value - string value
  • removeOption(value)
    remove string from dropdown
    Topic(s):
    File required:dhtmlxtoolbar.js
  • value - string value
  • setOptionText(value,newText)
    change option text
    Topic(s):
    File required:dhtmlxtoolbar.js
  • value - option value
  • newText - new option text
  • setOptionValue(oldValue,newValue)
    change string value
    Topic(s):
    File required:dhtmlxtoolbar.js
  • oldValue - old string value
  • newValue - new string value
  • setSelected(value)
    select string by value
    Topic(s):
    File required:dhtmlxtoolbar.js
  • value - string value
  • dhtmlXTwoStateButtonObject object API

    getState()
    get button state
    Topic(s):
    File required:dhtmlxtoolbar.js
    setState(state)
    set button state
    Topic(s):
    File required:dhtmlxtoolbar.js
  • state - new state (1 or 0)
  • dhtmlXSliderButtonObject object API

    getValue()
    set value of slider control
    Topic(s):
    File required:dhtmlxtoolbar.js
    setValue(val)
    set value of slider control
    Topic(s):
    File required:dhtmlxtoolbar.js
  • val - (integer) new value