PHP code example of thiktak / filament-simple-list-entry
1. Go to this page and download the library: Download thiktak/filament-simple-list-entry library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thiktak / filament-simple-list-entry example snippets
// use Thiktak\FilamentSimpleListEntry\Infolists\Components\SimpleListEntry;
public static function infolist(Infolist $infolist): Infolist
{
return $infolist
->schema([
SimpleListEntry::make('users')
->label('Default with Icon')
->itemIcon('heroicon-o-check'),
]);
}
SimpleListEntry::make('')
->label('Default with Icon')
->getStateUsing(['a', 'b', 'c'])
->itemIcon('heroicon-o-check'),