What is the best way to attach:
a) PHP callback
b) Open a modal
to a table created like this:
$table = $app->add(['Table', 'celled' => true]);
$table->setModel($mod, false);
$table->addColumn('name');
?
I tried some examples from doc, but they were not for the Table component, but for Grid and the usage seems to be very different.
I think you better use Grid class. It will have more options and extensions than Table. Table is meant for simple reporting purposes or things like that. For interactive tables - use Grid or CRUD.