thiktak
thiktak
FFilament
Created by nostrodamned on 9/17/2023 in #❓┊help
Thoughts on best practices for a View
Hello, A solution I implemented 🙂 (waiting Aymanalhattami to review my changes before working on singles pages) 1. Create a MenuBuilder class (Menus\MySettingsMenu), and build it with all your pages & groups. 2. Create a sidebar component like this one: https://github.com/Thiktak/filament-page-with-sidebar/blob/vFilament/resources/views/components/sidebar.blade.php 3. On each page, define a custom view with grid layout On the view, call the component you created, like this file (l23) https://github.com/Thiktak/filament-page-with-sidebar/blob/vFilament/resources/views/components/page.blade.php#L23 (Play with layout if you want to build a single layout page with sidebar) 4. Pass the MenuBuilder ->getNavigation() to the component
7 replies
FFilament
Created by thiktak on 9/17/2023 in #❓┊help
Idea for Filament: autopopulate label/description/icon/... of table/form/infolist/Notif
No description
3 replies
FFilament
Created by guitarnerd_ on 9/15/2023 in #❓┊help
How to get record data or just id of a relation manager record.
No description
21 replies
FFilament
Created by guitarnerd_ on 9/15/2023 in #❓┊help
How to get record data or just id of a relation manager record.
On all OrderLines, you created a custom action to open the creation form ?
21 replies
FFilament
Created by guitarnerd_ on 9/15/2023 in #❓┊help
How to get record data or just id of a relation manager record.
Depending where you need it 🙂 Inside some function, you can use $this->record
public function getTitle(): string
{
return __('Answers of') . ' ' . ($this->record ?? '');
}
public function getTitle(): string
{
return __('Answers of') . ' ' . ($this->record ?? '');
}
Inside table() : (you can check for form, should have something similar)
$table->getLivewire()->getOwnerRecord();
$table->getLivewire()->getOwnerRecord();
Inside form(), you can also use a function 🙂
public static function form(Form $form): Form
{
return $form->schema(function(...) {
return [ // add you schema here, and access to data
];
});
}
public static function form(Form $form): Form
{
return $form->schema(function(...) {
return [ // add you schema here, and access to data
];
});
}
Just need to found the object that can provide the record 🙂 (Livewire ? Component ? etc ..)
21 replies
FFilament
Created by mathan7136 on 9/14/2023 in #❓┊help
How to hide one field in repeater form ( only in first element )??
Here the tips, is to get the state with all uuid generated [..., uuid => [type => type, data => []], and fetch the actual uuid position
36 replies
FFilament
Created by mathan7136 on 9/14/2023 in #❓┊help
How to hide one field in repeater form ( only in first element )??
No description
36 replies