dhx.ui.template
Type: Component
File:
Based on:
dhx.Scrollable
,
dhx.AtomDataLoader
,
dhx.AtomRender
,
dhx.EventSystem
,
dhx.ui.view
,
dhx.ui.baseview
,
dhx.Settings
,
dhx.Destruction
,
dhx.BaseBind
Included in:
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
define
- sets configuration property or a hash of properties
destructor
- destructs an object
detachEvent
- detaches custom code from handler
getNode
- returns main html container of view
getParent
- returns parent object of current view
hasEvent
- checks whether a component has an event
hide
- hides view
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
refresh
- repaints the whole view or a certain a item
render
- renders a single item
resize
- adjusts view to the new size
scrollState
- returns scroll position (
{x:scrollLeft,y:scrollTop}
)
scrollTo
- scrolls data container to a certain position
setValues
- sets data hash
show
- makes view visible
unblockEvent
- enables event triggering
Events
onafterrender
- fires after view was rendered
onbeforerender
- fires before view rendering is initiated
onchange
- fires when data in an input was changed
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)
container
- html container or its id where view needs initializing
content
- the id or node, whose content will be moved to the view
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
loading
- enables/disables loading cover
on
- allows to attach custom handlers to inner events of the component
scroll
- enables/disables scroll
src
- path to external template that is loaded by Ajax
template
- item template
url
- data url
waitMessage
- defines whether the loading cover should be displayed while loading (actual in case of 'src' parameter)
width
- view width