And if the datalayout can listen onAfterSelect or onItemClick would be perfect
DataLayout repeats the same set of full-featured Webix views where particular data attributes are set as values/data.
Therefore, you can handle all needed events for these components, but if you want to access the source data item from DataLayout, there is a pecuuilarity you need to consider:
- when you set
name:"$value"
, component gets the entire source data object, so you can do something like next (click the header): https://webix.com/snippet/2a18c8e2
- in its turn,
name:"attr_name"
will transfer the value of the particular data attribute without any built-in reference to the original data item
For example, by default there is no property/method to detect in the authorList of which item you have selected a row.
Solution requires a bit of custom code, but you can add some reference (id of the source item) to the authorList data and access the original data using it.