// DOKUMENTACE ICON PICKER 3.x
Neaktuální

Čtete dokumentaci k verzi 3.x. Aktuální je 4.x.

Přejít na dokumentaci 4.x →

Installation

Requirements

  • PHP 8.2 or higher
  • Filament 4.x
  • blade-icons 1.8 or higher, which composer installs for you

Installing the package

You can install the package via composer:

composer require guava/filament-icon-picker:"^3.0"

Next, publish the package assets:

php artisan filament:assets

Custom theme

A custom filament theme is required, otherwise the CSS of the picker is not built and the field will look broken.

If you don't have one yet, please read the filament documentation on how to create a custom theme.

Once you have a theme, add the following to your theme.css file:

@source '../../../../vendor/guava/filament-icon-picker/resources/**/*';
IMPORTANTEvery panel that uses the icon picker needs a theme with this source path. It's up to you if you want to use the same theme for all panels or a separate one for each.

Livewire payload size

The picker loads the icons of your installed sets over livewire. If you have a lot of icon sets installed, you might hit livewire's payload limit, especially when you render the picker inline.

If that happens, increase the payloads.max_calls setting in your config/livewire.php.

guava/filament-icon-picker 709K instalací · 163 hvězd
// COOKIES

Pár cookies drží web v chodu; další si pamatují nastavení nebo počítají návštěvy. Vy rozhodujete, co poběží.

Zásady cookies