dhtmlXToolbarObject object API
addItem(item,position)
add item to toolbar
Topic(s): Add/delete;
item - dhtmlXButton objectposition - item position [not supported in current version]disableItem(itemId)
disable toolbar button
Topic(s): Item control;
itemId - item id
Nested from:dhtmlXProtobarObjectenableItem(itemId)
enable toolbar button
Topic(s): Item control;
itemId - item id
Nested from:dhtmlXProtobarObjectgetItem(itemId)
return item object by id
Topic(s): Item control;
itemId - item id
Nested from:dhtmlXProtobarObjectgetItemByPosition(position)
return item object by position
Topic(s): Item control;
position - item positionhideBar()
hide toolbar
Topic(s): Initialization;
Nested from:dhtmlXProtobarObject
hideButtons(idList)
hide toolbar buttons
Topic(s): Item control;
idList - list of items's ids, separated by comma
Nested from:dhtmlXProtobarObjecthideItem(itemId)
hide toolbar button
Topic(s): Item control;
itemId - item id
Nested from:dhtmlXProtobarObjecthideItemByPosition(position)
hide toolbar button
Topic(s): Item control;
position - item positionloadXML(file)
load XML from file
Topic(s): Initialization;
file - file name
Nested from:dhtmlXProtobarObjectloadXMLString(xmlString)
load XML from string
Topic(s): Initialization;
xmlString - string contining XML
Nested from:dhtmlXProtobarObjectremoveItemById(itemId)
remove item
Topic(s): Add/delete;
itemId - item idremoveItemByPosition(position)
remove item
Topic(s): Add/delete;
position - item positionresetBar(idList)
hide all items, show only items which ids in list
Topic(s): Item control;
idList - list of id's, separated by comma
Nested from:dhtmlXProtobarObjectsetBarAlign(align)
set toolbar buttons alignment (allowed - 'left','center','right','top','middle','bottom')
Topic(s): Initialization;
align - buttons alignment
Nested from:dhtmlXProtobarObjectsetBarSize(width,height)
set toolbar size
Topic(s): Initialization;
width - toolbar widthheight - toolbar height
Nested from:dhtmlXProtobarObjectsetItemAction(id,action)
set item individual action
Topic(s): Action handling;
id - item identificatoraction - js function called on item selection
Nested from:dhtmlXProtobarObjectsetOnClickHandler(func)
set default action
Topic(s): Action handling;
action - set default action
Nested from:dhtmlXProtobarObjectsetOnHideHandler(func)
set action hadler on toolbar hiding
Topic(s): Action handling;
func - user defined function
Nested from:dhtmlXProtobarObjectsetOnShowHandler(func)
set action hadler on toolbar showing
Topic(s): Action handling;
func - user defined function
Nested from:dhtmlXProtobarObjectsetTitleText(newText)
set toolbar tittle
Topic(s): Initialization;
name - new tittle, shown on toolbar
Nested from:dhtmlXProtobarObjectshowBar()
show toolbar
Topic(s): Initialization;
Nested from:dhtmlXProtobarObject
showButtons(idList)
show toolbar buttons
Topic(s): Item control;
idList - list of items's ids, separated by comma
Nested from:dhtmlXProtobarObjectshowItem(id)
show toolbar button
Topic(s): Item control;
id - item id
Nested from:dhtmlXProtobarObjectdhtmlXImageButtonObject object API
disable()
disable object
Topic(s): Item control;
Nested from:dhtmlXButtonPrototypeObject
enable()
enable object
Topic(s): Item control;
Nested from:dhtmlXButtonPrototypeObject
setAction(func)
set default action, action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectsetAltText(imageText)
set alt text of button image
Topic(s): Item control;
imageText - new alt image text
Nested from:dhtmlXButtonPrototypeObjectsetHTML(htmlText)
set innerHTML of button
Topic(s): Item control;
htmlText - new text
Nested from:dhtmlXButtonPrototypeObjectsetImage(imageSrc)
set image href
Topic(s): Item control;
imageSrc - new image href
Nested from:dhtmlXButtonPrototypeObjectsetSecondAction(func)
set personal onClick action (action must return false for preventing calling default action after personal), action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectdhtmlXToolbarDividerYObject object API
disable()
disable object
Topic(s): Item control;
Nested from:dhtmlXButtonPrototypeObject
enable()
enable object
Topic(s): Item control;
Nested from:dhtmlXButtonPrototypeObject
setAction(func)
set default action, action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectsetAltText(imageText)
set alt text of button image
Topic(s): Item control;
imageText - new alt image text
Nested from:dhtmlXButtonPrototypeObjectsetHTML(htmlText)
set innerHTML of button
Topic(s): Item control;
htmlText - new text
Nested from:dhtmlXButtonPrototypeObjectsetImage(imageSrc)
set image href
Topic(s): Item control;
imageSrc - new image href
Nested from:dhtmlXButtonPrototypeObjectsetSecondAction(func)
set personal onClick action (action must return false for preventing calling default action after personal), action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectdhtmlXToolbarDividerXObject object API
disable()
disable object
Topic(s): Item control;
Nested from:dhtmlXButtonPrototypeObject
enable()
enable object
Topic(s): Item control;
Nested from:dhtmlXButtonPrototypeObject
setAction(func)
set default action, action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectsetAltText(imageText)
set alt text of button image
Topic(s): Item control;
imageText - new alt image text
Nested from:dhtmlXButtonPrototypeObjectsetHTML(htmlText)
set innerHTML of button
Topic(s): Item control;
htmlText - new text
Nested from:dhtmlXButtonPrototypeObjectsetImage(imageSrc)
set image href
Topic(s): Item control;
imageSrc - new image href
Nested from:dhtmlXButtonPrototypeObjectsetSecondAction(func)
set personal onClick action (action must return false for preventing calling default action after personal), action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectdhtmlXImageTextButtonObject object API
disable()
disable object
Topic(s): Item control;
Nested from:dhtmlXButtonPrototypeObject
enable()
enable object
Topic(s): Item control;
Nested from:dhtmlXButtonPrototypeObject
setAction(func)
set default action, action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectsetAltText(imageText)
set alt text of button image
Topic(s): Item control;
imageText - new alt image text
Nested from:dhtmlXButtonPrototypeObjectsetHTML(htmlText)
set innerHTML of button
Topic(s): Item control;
htmlText - new text
Nested from:dhtmlXButtonPrototypeObjectsetImage(imageSrc)
set button image
Topic(s): Item control;
newText - new text [ HTML allowed ]setSecondAction(func)
set personal onClick action (action must return false for preventing calling default action after personal), action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectsetText(newText)
set button text
Topic(s): Item control;
newText - new text [ HTML allowed ]dhtmlXSelectButtonObject object API
addOption(value,display)
add option to dropdown
Topic(s):
value - string value (sended to action function)display - displayed stringdisable()
disable object
Topic(s): Item control;
enable()
enable object
Topic(s): Item control;
getIndexByValue(value)
return string index in dropdown by value (return -1 if string with given value not found)
Topic(s): Initialization;
value - string valueremoveOption(value)
remove string from dropdown
Topic(s):
value - string valuesetAction(func)
set default action, action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectsetAltText(imageText)
set alt text of button image
Topic(s): Item control;
imageText - new alt image text
Nested from:dhtmlXButtonPrototypeObjectsetHTML(htmlText)
set innerHTML of button
Topic(s): Item control;
htmlText - new text
Nested from:dhtmlXButtonPrototypeObjectsetImage(imageSrc)
set image href
Topic(s): Item control;
imageSrc - new image href
Nested from:dhtmlXButtonPrototypeObjectsetOptionText(value,newText)
change option text
Topic(s):
value - option valuenewText - new option textsetOptionValue(oldValue,newValue)
change string value
Topic(s):
oldValue - old string valuenewValue - new string valuesetSecondAction(func)
set personal onClick action (action must return false for preventing calling default action after personal), action function take one parametr - item id
Topic(s): Action handling;
func - js function
Nested from:dhtmlXButtonPrototypeObjectsetSelected(value)
select string by value
Topic(s):
value - string value