dataview
Type: Component
File: ui/dataview.js
Based on:
MouseEvents
,
KeyEvents
,
SelectionModel
,
EditAbility
,
Scrollable
,
RenderStack
,
DataLoader
,
AtomDataLoader
,
view
,
Settings
,
Destruction
,
EventSystem
,
Settings
Included in:
Methods
add
- adds item to the store
attachEvent
- attach custom handler to inner event
blockEvent
- purpose is unknown
callEvent
- calls inner event
clearAll
- remove all items from the component
customize
- applies new type settings
dataCount
- gets count of items
define
- sets configuration property or a hash of properties
destructor
- destructs the object
detachEvent
- detach custom code from handler
dragMarker
- renders drag-n-drop marker
edit
- switch item to the edit state
exists
- checks if the item with such ID exists
filter
- filters data
first
- gets the ID of the first item
getNode
- gets html object of a view
getParent
- gets a parent view
getSelected
- returns ID of selected item(s)
hasEvent
- checks whether a component has an event
idByIndex
- gets the id of an item with taken index
indexById
- the index of the item in question
isEdit
- returns id of item in edit state, or null if none
isSelected
- checks is item selected or not
item
- gets the object of a data item
last
- gets the id of the last item
load
- loads values from external datasource
locate
- gets the ID of the item which is affected by
HTML
event
mapEvent
- route events from one object to another
next
- gets ID of the next element which is positioned in defined step
parse
- added data from a datasource
previous
- gets ID of the previous element which is positioned in defined step
refresh
- repaint the whole view or a certain a item
remove
- removes element from datastore
render
- renders a current state of an item or the whole component
resize
- recalculates and adjusts view sizes
scrollTo
- scrolls data container to a certain position
select
- selects item
selectAll
- selects all items
show
- adjust scroll state to show item in question
sort
- sorts datastore
stopEdit
- switch any item in edit state, back to normal
unblockEvent
- purpose is unknown
unselect
- unselects item
unselectAll
- unselects all items
update
- sets properties of the data item
Events
onitemclick
- item was clicked
onbeforecontextmenu
- context menu call in the item area
onitemdblclick
- item was double-clicked
onmousemove
- mouse was pointed over item
onmouseout
- mouse was moved out from item
onmousemoving
- mouse was moved over component
onkeypress
- for each key action in default state
oneditkeypress
- for each key action in default state
onbeforeselect
- item selection is started
onafterselect
- item was selected
onselectchange
- selection state was changed
onbeforeeditstart
- edit operation initiated
onaftereditstart
- edit operation initiated, editor opened and ready for input
onbeforeeditstop
- stop edit command was received
onaftereditstop
- edit operation finished
onbeforerender
- occurs when rendering is starting
onitemrender
- for each item rendering, occurs only for items with custom templates
onafterrender
- after view rendered
onxls
- before xml loading start
onxle
- after xml loading end
Properties
xCount
- adjusts view width to display the defined number of items in a row
yCount
- adjusts view height to display the defined number of items in a column
edit
- enables/disables item editing
select
- enables/disables item selection or multiselection in grouplist
edit
- allow or deny edit operations
scroll
- enables/disables scroll
type
- type name or an object that defines Type properties
template
- item template
datastore
- custom DataStore object
data
- loaded data
url
- data url
datatype
- type of loaded data
container
- html container or its id where view needs being initialized
id
- view id
css
- class name for view container
width
- view width
height
- view height
gravity
- view gravity (1 by default)