In the pseudo code:
protected function content() {
return [
Panel::create()
->menu([
'Details' => MenuItem::create()->icon('fa fa-table')
->onClick(
Client::showLoader().
( Client::widget('childA') || Client::widget('childB') )->showDetail() // ?
)
])
->sub([
FlexView::create('myFlexView')
->viewOptions([...])
How to know witch flexView I'm on to be able to call showDetail() on it?
ps. I want a one Panel to hold the FlexView widget instead of a FlexView with Panels inside as in the FlexView Dashbaord example. It is working already, but I would like to add the Details menu button now.