You can now update to Fabrik 3.5.1. As always, please back up your site prior to updating and if possible test in a dev environment first.
- Button label - Button label
- Button image-
- For Joomla3.x - a bootstrap icon class - e.g. 'user'.
- For Jooml 2.5 - a button image name which will be looked for in the image overrides folders - see http://fabrikar.com/forums/index.php?wiki/image-overrides/ e.g. 'php.png'
- Success message
console.log(ids); //outputs an array of the selected row ids
console.log(rows); // outputs a object key'ed on the selected row ids, each value is an object containing the row data.
Accessing list data (top)
You can get at the list's data through the list objects 'data' option. First you need to get at the main Fabrik "block" for the list ...
Code (Text):var listdata = Fabrik.getBlock('list_123').options.data
That data is then grouped, according to your list's current display grouping, using sequentially numbered indexes starting at 0 for each group.
If your display is not grouped, it'll all be in listdata. Which is then indexed by row number (not PK value, just the sequential display count, starting at 0). And that then contains another 'data' object, which has all the element values in it. So if you wanted to get the value of 'yourtable___yourelement' in the third row of the first (or only group) ...
Code (Text):var myelement = listdata .data.yourtable___yourelement;
And of course you can iterate through the data object, or otherwise do with it what you need to, using standard JS.