mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-28 03:44:19 +08:00
Fix ColorColumn namespace in documentation (#17962)
Updated namespace for ColorColumn usage in documentation. Signed-off-by: Stefano Bifolco <stefanobifolco@gmail.com>
This commit is contained in:
@@ -10,7 +10,7 @@ import UtilityInjection from "@components/UtilityInjection.astro"
|
||||
The color column allows you to show the color preview from a CSS color definition, typically entered using the [color picker field](../../forms/color-picker), in one of the supported formats (HEX, HSL, RGB, RGBA).
|
||||
|
||||
```php
|
||||
use Filament\Tables\Components\ColorColumn;
|
||||
use Filament\Tables\Columns\ColorColumn;
|
||||
|
||||
ColorColumn::make('color')
|
||||
```
|
||||
@@ -22,7 +22,7 @@ ColorColumn::make('color')
|
||||
You may make the color copyable, such that clicking on the preview copies the CSS value to the clipboard, and optionally specify a custom confirmation message and duration in milliseconds. This feature only works when SSL is enabled for the app.
|
||||
|
||||
```php
|
||||
use Filament\Tables\Components\ColorColumn;
|
||||
use Filament\Tables\Columns\ColorColumn;
|
||||
|
||||
ColorColumn::make('color')
|
||||
->copyable()
|
||||
@@ -35,7 +35,7 @@ ColorColumn::make('color')
|
||||
Optionally, you may pass a boolean value to control if the text should be copyable or not:
|
||||
|
||||
```php
|
||||
use Filament\Tables\Components\ColorColumn;
|
||||
use Filament\Tables\Columns\ColorColumn;
|
||||
|
||||
ColorColumn::make('color')
|
||||
->copyable(FeatureFlag::active())
|
||||
|
||||
Reference in New Issue
Block a user