Text to be copied to the clipboard
Hi, I am trying to utilise the feature of
copyable()
however it, it keeps returning me the following error when added (See image).
This is how I applied it it:
public static function table(Table $table): Table
{
return $table
->columns([
TextColumn::make('comment')->copyable(true), // <-- Here
])
->filters([
])
->actions([
Tables\Actions\EditAction::make(),
Tables\Actions\DeleteAction::make()
])
->bulkActions([
Tables\Actions\DeleteBulkAction::make(),
]);
}
https://filamentphp.com/docs/2.x/tables/columns/text#customizing-the-text-that-is-copied-to-the-clipboard3 Replies
Can you try if it works while using the
->copyableState()
?filament version?
Hi, I get an error saying copyableState does not exist.
"version": "v2.17.48",