return Select::make('blabla')
->options([$this->options])
->live()
->disabled(function (Get $get) {
return $get('is_occupied');
})
->placeholder(function (Get $get) {
$intervention = $get('intervention'); (something or null)
return $intervention ?? __('my_placeholder');
})
->afterStateUpdated(function (Set $set, Get $get, $state) {
$this->handleSomething($set, $get, $state);
});
return Select::make('blabla')
->options([$this->options])
->live()
->disabled(function (Get $get) {
return $get('is_occupied');
})
->placeholder(function (Get $get) {
$intervention = $get('intervention'); (something or null)
return $intervention ?? __('my_placeholder');
})
->afterStateUpdated(function (Set $set, Get $get, $state) {
$this->handleSomething($set, $get, $state);
});