saade / filament-adjacency-list Goto Github PK
View Code? Open in Web Editor NEWA Filament package to manage adjacency lists (aka trees).
Home Page: https://filamentphp.com/plugins/saade-adjacency-list
License: MIT License
A Filament package to manage adjacency lists (aka trees).
Home Page: https://filamentphp.com/plugins/saade-adjacency-list
License: MIT License
I cannot reorder my items in the list, or make an item a subitem. I can create a child perfectly fine though.
The data in the database is this:
{"f692b5e5-2cc9-41ad-9b5a-79ea86d1f0b4":{"label":"lol","children":[],"url":null},"4a463f2d-e261-4fb7-bb1b-f130c9cdea64":{"label":"lol2","children":[],"url":null}}
I am using this form on a settings page (package)
No idea to be honest. It might be because i am doing it in a settings page.
3.1.0
8.1
10
Windows
No response
I want to display adjecency list as widget on top of list page but when I try pass data from page table to widget it seems error or not working
I make widget resource and put it on list page and try to access data from widget with dd it seems appear but when I try to fill the form then this error happend foreach() argument must be of type array object null given
3.1
8.1.17
10.10
Windows
No response
Upgraded the package from 3.1.2 -> 3.2.0 and now List is throwing errors about releationships and missing traits.
Adding the trait to my model, however causes the form to break, since it is looking for a relationship on the AdjacencyList component.
https://flareapp.io/share/NPLWWAQm
AdjacencyList::make('items')
->columnSpanFull()
->form([
Forms\Components\TextInput::make('label')
->required(),
Forms\Components\TextInput::make('url')
->required(),
Forms\Components\Select::make('target')
->options(...),
Forms\Components\CheckboxList::make('rel')
->columnSpan(1)
->columns(3)
->options(...,
]),
v3.2.0
8.2
10.0
macOS
No response
You want to change the level of an item or a group
You have a list of items when you edit the resource, you move the item/group to root or another level
3.x
8.2.0
10.22.0
Linux
No response
Our ordinary classes like buttons is overrided with white background with this plugin.
When I install the plugin
3.1.0
8.1
10
No response
No response
While adding child items to a primary node, the modal closes unexpectedly but the modal backdrop remains.
Install the plugin. Add first item with at least one child item. Then, create another top node item and attempt to add a child item to the new node.
3.x
8.1
10
macOS
No response
Add in form
public static function form(Form $form): Form
{
return $form
->schema([
AdjacencyList::make('Subjects')
->form([
Forms\Components\TextInput::make('name')
->required(),
])
->labelKey('name')
]);
}
Illuminate\Database\Grammar::parameterize(): Argument #1 ($values) must be of type array, string given, called in /var/www/html/vendor/laravel/framework/src/Illuminate/Database/Query/Grammars/Grammar.php on line 1040
Create new resource
Add items
Save resource
3.0.3
8.2.9
10.20.0
Linux
No response
Actions are not configurable
When trying to configure actions, such as the edit action, it doesn't seem to work.
For example, using:
AdjacencyList::make('descendants')
->label('Subcategories')
->editAction(fn(Action $action) => $action->slideOver())
->labelKey('name')
->relationship('descendants')
->form([
Forms\Components\TextInput::make('name')
->required(),
]),
Doesn't seem to apply the slideOver()
method correctly. However, if you manually add slideOver()
to the action in the source code, it works, indicating that something is off with how the configurations are passed through. This issue occurs for all actions.
Here's the relevant source code:
public function getEditAction(): Actions\Action
{
$action = Actions\EditAction::make()->slideOver(); // Testing here works
if ($this->modifyEditActionUsing) {
$action = $this->evaluate($this->modifyEditActionUsing, [
'action' => $action,
]) ?? $action;
}
return $action;
}
It seems the configuration isn't being applied as expected when using the method to modify the edit action.
v1.22
v8.3.4
v11.9.2
macOS
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.