nighty
Setting navigation group as collapsed by default
foreach($arrNavGroup as $group){
$group->collapsible(true)->collapsed(true);
#dd($group); //collapsible is applied
$builder->group($group);
}
return $builder;
//collapsible flag gone after return13 replies
Setting navigation group as collapsed by default
Hello, i have to ask again ... i have a similar problem and want to collapse some NavigationGroups on loading ... in my case if i add ->collapsed() nothing changed, i am also using only a AdminPanelProvider for Navigation generation. i checked the NavigationItems with dd() and they get the corret settings - for me, it seems if the are feed back into the builder instance, this setting get completely lost.
13 replies
Repeater - Array to String Conversion when save - logImplodeAssoc
when converting the array for logging ... it converts only one level - if multidimensional array comes to this function it breaks - i think it has to be fixed in filament source
11 replies
Repeater - Array to String Conversion when save - logImplodeAssoc
if i change the function this way, the error is gone:
/**
* Format an assoc array as a key/value string for logging
* @return string
*/
public static function logImplodeAssoc(array $attrs): string {
$l = '';
foreach( $attrs as $k => $v ) {
/* changes Start */
if(is_array($v)){
continue;
} /* change End */
$l .= "{ $k => $v } ";
}
return $l;
}
11 replies
get new (changed) Pagination Value from inside a Resource
i think .... i have to intercept the ajax call which updates the table -> feels like this would be the perfect position for this case ... but i cannot find any way to do things like this
12 replies
get new (changed) Pagination Value from inside a Resource
meanwhile i tried a different solution, the values is stored in the session - problem here is, the form will not be reloaded, it works as soon i klick in the same resource on any position that resends the form, but not without reloading
12 replies
JsTree integration to Filament
Hi thank you for the tip .... in my case it´s more like display a entire tree with related data, up to 5-6 levels. it should open a details page if i click on an item. more like this example https://www.jstree.com/demo/
5 replies