Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Widget::create(DataTables::class, array(
"dataSource"=>(
$dataSource->query($sql)
),
"options"=>[
"id"=>"foobar",
]
));
being able to reference the table by $("#foobar") for some other processing later. This seemed to work in some cases, but isn't working in the case of this being used in a 'widget' context.
Hi, I am sorry that I return to this question, but there is no answer. How to set the "id" for the koolreport table?
Now We can have something like this
But what if I need to have a specific id for <table>? Sure I can try to do something via JS and set id, but maybe there is a more simple and transparent way?
sure it will work in some cases
But my question was caused by the fact that a certain 3d party package required to specify the id of the table, so the option of accessing by the selector did not work in my case - it was not under my control/
Changing the template means keeping this in mind during updates, and I would not say that this is a universal method.
Nevertheless, as a recommendation and suggestion, I would like to see the opportunity to specify a name, id, class for any HTML element generated by koolreport - tables, charts, controls wrappers etc. I am sure it is not difficult but will add some flexibility to koolreport.
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo