is it possible to add loading screen
I want to ask is it possible to add loading state in forms\components\section while make all the component ready after update?
If possible how to achive that? Thank you!
If possible how to achive that? Thank you!
Forms\Components\Section::make([
Forms\Components\Placeholder::make('')
->content(new HtmlString(<<<'BLADE'
<div wire:loading wire:target="data.title">
Loading...
</div>
BLADE
)),
Forms\Components\TextInput::make('title')
->live(onBlur: true)
->afterStateUpdated(function (Forms\Set $set, ?string $state) {
$set('slug', str($state)->slug());
}),
Forms\Components\TextInput::make('slug')
])