amite
amite
FFilament
Created by amite on 7/7/2024 in #❓┊help
Using Filament as a file manager (without eloquent records)
I want the table component to simply list out the files from my nested directories which contain multiple PDFs. I know I can use the modifyQueryUsing() hook to serve any records I like. The problem is that I just have an array of file paths I want to see listed in a filament table. Does this hook only return a query builder? How do I just list my directory contents instead? Should I make a custom filament component for this?
2 replies
FFilament
Created by amite on 9/10/2023 in #❓┊help
Help me understand Filament Form text-input field component source code
In the vendor package inside text-input.blade.php, (https://github.com/filamentphp/filament/blob/3.x/packages/forms/resources/views/components/text-input.blade.php), I can see code like this.
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
<x-filament::input.wrapper
:disabled="$isDisabled"
:inline-prefix="$isPrefixInline"
:inline-suffix="$isSuffixInline"
:prefix="$prefixLabel"
:prefix-actions="$prefixActions"
:prefix-icon="$prefixIcon"
:suffix="$suffixLabel"
:suffix-actions="$suffixActions"
:suffix-icon="$suffixIcon"
:valid="! $errors->has($statePath)"
class="fi-fo-text-input"
:attributes="
\Filament\Support\prepare_inherited_attributes($getExtraAttributeBag())
->class(['overflow-hidden'])
"
>
<x-filament::input
:attributes="
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
<x-filament::input.wrapper
:disabled="$isDisabled"
:inline-prefix="$isPrefixInline"
:inline-suffix="$isSuffixInline"
:prefix="$prefixLabel"
:prefix-actions="$prefixActions"
:prefix-icon="$prefixIcon"
:suffix="$suffixLabel"
:suffix-actions="$suffixActions"
:suffix-icon="$suffixIcon"
:valid="! $errors->has($statePath)"
class="fi-fo-text-input"
:attributes="
\Filament\Support\prepare_inherited_attributes($getExtraAttributeBag())
->class(['overflow-hidden'])
"
>
<x-filament::input
:attributes="
As a dev familiar with React (and new to Livewire components), I see this as props being passed to a component. Is this a correct assumption to make? My main question is: where in the source repository do I find the <x-dynamic-component /> component or the <x-filament::input /> component or the <x-filament::input /> component? I am a bit lost here because I don't see any imports on the top of the file
11 replies