12.07.2015 Views

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

Using Zen Components - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Finder PaneAttributeondrawemptyondrawitemongetdataongeticononlazyloadonselectitemparametersselectedListupIconviewTypeDescriptionThe ondrawempty event handler: If defined, handles the event fired when there isno data available to display within the finder. If this event handler returns a value,then it is used as DHTML providing content for the empty finder.The ondrawitem event handler: If defined, handles the event fired when an itemwithin the finder is about to be drawn. If this event handler returns a value, then it isused as DHTML to render the item contents.The ongetdata event handler: This defines the client-side code that returns a graphof javascript objects used to provide the contents of the finder.The ongeticon event handler. If defined, handles events fired when the finder is in"icons" view and returns the url of the icon to use for the current item. If it returns ""(the empty string), then the default icon is used. The current item is passed to theevent handler as an item.The onlazyload event handler: Used to partially load data into the finder.This definesthe client-side code that returns a graph of javascript objects that are used as thechildren of the current node.The onselectitem event handler. If defined, handles the event fired when the userclicks on an item within the finder.User-defined set of parameters. These are currently not used by the finder.This is a list of numbers (0-based) indicating the current selected item(s). The firstnumber is the index in the top-most list of items; the second is the index within thechildren of the top-most item and so on.The default icon to display for the button that enables users to move up a level whenthe finder is in “icons” mode. Use the viewType attribute to select “icons” mode.The default value is the filename of an image file suppled by the system. You canuse this attribute to set a different default image. The filename specifies the pathfrom the csp/broker directory under the Caché install directory.How the contents of the finder component are displayed. Possible values are:• icons — arranges items in a grid, with an image representing each item.• list — arranges items in a vertical list.• columns — arranges items in columns.The default value is “columns”.<strong>Using</strong> <strong>Zen</strong> <strong>Components</strong> 259

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!