dhx.ui.alert
Type: Component
File:
Based on:
dhx.ui.window
,
dhx.ui.view
,
dhx.ui.baseview
,
dhx.Settings
,
dhx.Destruction
,
dhx.BaseBind
,
dhx.Movable
,
dhx.Modality
,
dhx.EventSystem
Included in:
dhx.ui.confirm
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
close
- removes a window
define
- sets configuration property or a hash of properties
destructor
- destructs an object
detachEvent
- detaches custom code from handler
getBody
- gets the ui view of the window body
getHead
- gets the ui view of the window header
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
mapEvent
- routes events from one object to another
resize
- adjusts view to the new size
resizeChildren
- adjusts view and his children to a new size.
setPosition
- sets window's position
show
- makes view visible
unblockEvent
- enables event triggering
Events
onHide
- fires when window is hidden
onShow
- fires when window is shown
Properties
animate
- defines animation on view change (object with direction, type and subtype properties) or disables animation (false)
body
- the content of window body: template or view
callback
- the name of the function that is called after closing window.
container
- html container or its id where view needs initializing
css
- class name for view container
details
- content of this parameter is passed to callback function as the second parameter (optional).
gravity
- view gravity (1 by default)
headHeight
- defines the header height (43 by default)
head
- sets header view
header
- the content of window header: template or view
height
- view height
hidden
- sets whether a view will be hidden initially
id
- view id
labelCancel
- sets the text of 'Cancel' button
labelOk
- sets the text of 'Ok' button
left
- the left offset of a window (100)
message
- the html string that is shown in the alert window
modal
- switches window modality
move
- makes view movable
on
- allows to attach custom handlers to inner events of the component
position
- alert window position
scroll
- enables scrolling
title
- the header text of alert box
top
- the top offset of a window (100)
width
- view width