get table instance in mDataProp or table instance passed as parametr to function in cell
get table instance in mDataProp or table instance passed as parametr to function in cell
Hi, i have multiple tables in tree structure on page. And i need to pass table instance of table in which is clicked on button to function performing delete row.
Im trying something like this in datatable initialization
[code]
{"mDataProp": function(source, type, val){
{if $user->isInRole('0')}
{else}
return "";
{/if}
}}
[/code]
Is there some option, how get table instance to variable tableInstance? Or how to detect in which table was row clicked?
I cant use storing datatable to variable, cause i have many datatables on page, and not sure how efficing will be looping through array of datatables.
Im trying something like this in datatable initialization
[code]
{"mDataProp": function(source, type, val){
{if $user->isInRole('0')}
{else}
return "";
{/if}
}}
[/code]
Is there some option, how get table instance to variable tableInstance? Or how to detect in which table was row clicked?
I cant use storing datatable to variable, cause i have many datatables on page, and not sure how efficing will be looping through array of datatables.
This discussion has been closed.