dhx.ui.toolbar
Type: Component
File:
Based on:
dhx.Scrollable
,
dhx.AtomDataLoader
,
dhx.Values
,
dhx.ui.baselayout
,
dhx.ui.baseview
,
dhx.Settings
,
dhx.Destruction
,
dhx.BaseBind
,
dhx.ValidateData
,
dhx.EventSystem
Included in:
dhx.ui.form
Methods
adjust
- adjusts the component to the size of the outer parent
HTML
container
attachEvent
- attaches custom handler to inner event
bind
- binds components
blockEvent
- blocks event triggering
callEvent
- calls inner event
clear
- clears values of all inputs ( resets them to the default values )
clearValidation
- removes error(invalid) marking from inputs that failed validation
define
- sets configuration property or a hash of properties
destructor
- destructs an object
detachEvent
- detaches custom code from handler
first
- returns the ID of the first cell
focus
- sets focus to an input
getNode
- returns main html container of view
getParent
- returns parent object of current view
getValues
- gets hash of data values
hasEvent
- checks whether a component has an event
hide
- hides view
index
- returns an index of the currently selected view (index in the array of views)
isVisible
- returns true if current view is visible
load
- loads values from external datasource
mapEvent
- routes events from one object to another
parse
- addes data from a datasource
reconstruct
- rebuilds layout
refresh
- repaints the whole view or a certain item
render
- renders a current state of an item or the whole component
resize
- adjusts view to the new size
resizeChildren
- resizes children of the calling component
scrollState
- returns scroll position (
{x:scrollLeft,y:scrollTop}
)
scrollTo
- scrolls data container to a certain position
setValues
- sets values for all inputs in the component
show
- makes view visible
showBatch
- makes visible elements which parameter 'batch' is set to the specified name
unblockEvent
- enables event triggering
validate
- validates for the defined rules
Events
onxle
- fires after xml loading end
onxls
- fires before xml loading start
Properties
animate
- defines animation on view change (object with direction, type and subtype properties) or disables animation (false)
cols
- array of views arranged horizontally
container
- html container or its id where view needs initializing
css
- class name for view container
data
- loaded data
datatype
- type of loaded data
gravity
- view gravity (1 by default)
height
- view height
hidden
- sets whether a view will be hidden initially
id
- view id
on
- allows to attach custom handlers to inner events of the component
rows
- array of views arranged vertically
scroll
- enables/disables scroll
type
- the type of toolbar
url
- data url
visibleBatch
- sets the batch that will be shown initially
width
- view width