Section::make('Cerca libro per titolo')
->description(new HtmlString('xxx'))
->schema([
TextInput::make('titolo')
->prefix('Titolo')
->suffixAction(
Action::make('search')->button()->labeledFrom('md')->label("Cerca")
->icon('heroicon-m-clipboard')
->action(function (Set $set, $state) use($id, &$biblioteca){
//something to populate an array of results from the search key
})
),
Placeholder::make('pippo')->label('')
->content(function (Get $get) use(XXX): HtmlString {
//something like "We have found these results" and in this case the save button must be available o "we have found no match" and the save button must stay disabled
});
Section::make('Cerca libro per titolo')
->description(new HtmlString('xxx'))
->schema([
TextInput::make('titolo')
->prefix('Titolo')
->suffixAction(
Action::make('search')->button()->labeledFrom('md')->label("Cerca")
->icon('heroicon-m-clipboard')
->action(function (Set $set, $state) use($id, &$biblioteca){
//something to populate an array of results from the search key
})
),
Placeholder::make('pippo')->label('')
->content(function (Get $get) use(XXX): HtmlString {
//something like "We have found these results" and in this case the save button must be available o "we have found no match" and the save button must stay disabled
});