Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 17915

How to change Filament Placeholder content on LIVE?

$
0
0

I am using Filament 3.2. How to update Placeholder content on live?

Select::make('authors')    ->relationship('authors', 'name')    ->live()    ->afterStateUpdated(function (string $operation, $state, Forms\Set $set, Forms\Get $get) {    $user = User::find($state[0]);    if ($user) {        $userEmail = $user->email;        $set('authoremail', $userEmail);    }    }),// TextInput::make('authoremail')//     ->label("Author's Email")//     ->disabled(),Placeholder::make('authoremail')

If it is TextInput, it works. But it doesn't work on Placeholder. How can I make it works on Placeholder?


Viewing all articles
Browse latest Browse all 17915

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>