fires on selecting an item, but before the item is really selected
beforeSelect: (id: string | number) => void | boolean;
Parameters:id: string | number
- the id of an itemReturn false
to prevent selecting of an item; otherwise, true
.
Example
component.selection.events.on("beforeSelect", function(id) {
console.log(id);
return false;
});
Starting from v7.0, you can also apply the simplified version of the event:
component.events.on("beforeSelect", function(id) {
console.log(id);
return false;
});
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4