Action on click row table

When clicking on a record in the table, it performs a default action, okay? So, how can I perform one action or another depending on the state of a certain field?
1 Reply
awcodes
awcodes3mo ago
$table->recordAction(function($record) {
if ($record->condition) {
return ActionOne;
}
return ActionTwo;
})
$table->recordAction(function($record) {
if ($record->condition) {
return ActionOne;
}
return ActionTwo;
})
Want results from more Discord servers?
Add your server