:: Documentation >>

top model

Contains the properties (text, image, tooltip etc.) of the top-left corner of the grid control (top selector).

Syntax

var value = obj.getTopProperty(name); // Retrieve property by name
obj.setTopProperty(name, value);      // Assign property value
obj.defineTopProperty(name, value);   // Define new property

var external = obj.getTopModel();     // Get reference to external model
obj.setTopModel(external);            // Assign external model
obj.clearTopModel();                  // Clear/reset all properties

Properties

dataTop selector data.
formatTop selector formatting object.
imageTop selector image.
linkTop selector hyperlink URL.
stateTop selector state.
textTop selector text.
tooltipTop selector tooltip.
valueTop selector value.

Defined in

AW.UI.Grid

Used by

topSelector template

Examples

var obj = new AW.UI.Grid;
obj.setSelectorVisible(true);
obj.setSelectorWidth(100);

obj.setTopText("top text");
obj.setTopImage("favorites");
obj.setTopTooltip("tooltip text");
document.write(obj);

See also

Grid templates: top selector
Related models: header, selector, bottom

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5