F
Filament2mo ago
Eskie

Copyable Not working

It seems that copyable not working on v4..
public function table(Table $table): Table
{
/** @var ?User $user */
$user = auth()->user();
abort_if($user === null, 404);

return $table
->query(fn () => $user->tokens())
->columns([
TextColumn::make('name'),
TextColumn::make('token')
->copyable()
->copyMessage('token copied')
->formatStateUsing(fn (string $state): string => Str::mask($state, '*', 10)),
])
->recordActions([
DeleteAction::make(),
])
->toolbarActions([
DeleteBulkAction::make()
]);
}
public function table(Table $table): Table
{
/** @var ?User $user */
$user = auth()->user();
abort_if($user === null, 404);

return $table
->query(fn () => $user->tokens())
->columns([
TextColumn::make('name'),
TextColumn::make('token')
->copyable()
->copyMessage('token copied')
->formatStateUsing(fn (string $state): string => Str::mask($state, '*', 10)),
])
->recordActions([
DeleteAction::make(),
])
->toolbarActions([
DeleteBulkAction::make()
]);
}
No description
5 Replies
Eskie
EskieOP2mo ago
This is a custom page
LeandroFerreira
LeandroFerreira2mo ago
Use https
LeandroFerreira
LeandroFerreira2mo ago
No description
Eskie
EskieOP2mo ago
oh.. thanks.. i didn't see this note..
deadbeef
deadbeef2mo ago
@Eskie You can also go to chrome://flags/#unsafely-treat-insecure-origin-as-secure and add your app

Did you find this page helpful?