@php use Filament\Support\Enums\IconSize; use Filament\Support\Facades\FilamentAsset; use Illuminate\View\ComponentAttributeBag; use function Filament\Support\generate_icon_html; use function Filament\Support\generate_loading_indicator_html; $key = $getKey(); $statePath = $getStatePath(); $state = $field->getState(); $isDropdown = $isDropdown(); $isDisabled = $isDisabled(); $shouldCloseOnSelect = $shouldCloseOnSelect(); $displayName = $getDisplayName(); $placeholder = $getPlaceholder(); @endphp
{ return await $wire.callSchemaComponentMethod(@js($key), 'getSetJs', { state }) }, getIconsUsing: async (set) => { return await $wire.callSchemaComponentMethod(@js($key), 'getIconsJs', { set }) }, getIconSvgUsing: async(id) => { return await $wire.callSchemaComponentMethod(@js($key), 'getIconSvgJs', { id }) }, verifyStateUsing: async(state) => { return await $wire.callSchemaComponentMethod(@js($key), 'verifyState', { state }) } })" {{ $getExtraAttributeBag() ->class([ 'flex flex-col gap-4' ]) }} >
{{generate_loading_indicator_html()}} @if($state) {{generate_icon_html($state)}} @endif
@if(!$isDisabled) {{ generate_icon_html( 'heroicon-s-x-mark', attributes: (new ComponentAttributeBag()) ->merge([ 'x-on:click.prevent.stop' => 'updateState(null)' ]) ->class([ 'opacity-50 text-black dark:text-white m-auto hover:cursor-pointer' ]) )}} @endif @if($isDropdown && !$isDisabled) @endif
@if(! $isDropdown && ! $isDisabled) @endif