Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Comment:
Published by Scroll Versions from space WBRIDGE and version 24.0
In some cases you have a DataTable and may want to change table values depending on other values in the table. You can add this to a JavaScript on the drawCallback of the <<UITableBinding>>.
Add a script code like the following, e.g. to hide a UI element.
Code Block | ||
---|---|---|
| ||
table.find('tr').each(function(){ var data = table.fnGetData(this); if(data){ if(data[14]==='false'){ $(this).find('.ID::<name of the UI element>').hide(); } } }); |
This script hides a UI element if the value of column number 15 is false. The indices refer to the data columns - column 15 has an index of 14.
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
|
Overview
Content Tools