allows setting custom flag for a data item.
| id |
| any | the flag value |
//adds flag 'invaid = true' for the item with 'id=2'.
//applies to this item css style ".invalid"
$$("dtable").addMark(2, "invalid", true, true); // returns 'true'
The method adds some info (as a key/value pair) related to a data item, marking the item thereby. The added information is stored separately from main data. So if you, for example, load data from one data store to multiple components, the mark will exist just for a data item of the calling component.
The method can be called in 4 ways:
addMark(id, name) //-> 'css' is set to false, 'value' - to trueaddMark(id, name, css) //-> 'value' is set to trueaddMark(id, name, css, value)addMark(id, name, css, value, silent) //-> 'silent' is set to true, do not refresh the component