DHTMLX Docs & Samples Explorer

Index
dhtmlxtoolbar
API Methods

### addButton(id, pos, text, imgEnabled, imgDisabled)

Required library edition:
Required library file: dhtmlxtoolbar.js

adds a button to webbar

- 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)

        toolbar.addButton(id, pos, text, imgEnabled, imgDisabled);