Skip to content

Commit 953b997

Browse files
committed
Add more gridstack options
disableResize : You can enable/disable resizing widgets (default: false). disableDrag : You can enable/disable dragging widgets (default: false). resizable : You can specify resizing handles position of widgets. It can be any combination of n,ne,e,se,s,sw,w,nw or all ( default: 'se').
1 parent 5b12206 commit 953b997

File tree

7 files changed

+521
-110
lines changed

7 files changed

+521
-110
lines changed

README.md

+46
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,52 @@ public function panel(Panel $panel): Panel
143143
}
144144
```
145145

146+
You can enable/disable dragging widgets (default: false).
147+
148+
```php
149+
use InvadersXX\FilamentGridstackDashboard\GridstackDashboardPlugin;
150+
151+
public function panel(Panel $panel): Panel
152+
{
153+
return $panel
154+
->plugins([
155+
GridstackDashboardPlugin::make()
156+
->disableDrag(true),
157+
])
158+
}
159+
```
160+
161+
You can enable/disable resizing widgets (default: false).
162+
163+
```php
164+
use InvadersXX\FilamentGridstackDashboard\GridstackDashboardPlugin;
165+
166+
public function panel(Panel $panel): Panel
167+
{
168+
return $panel
169+
->plugins([
170+
GridstackDashboardPlugin::make()
171+
->disableResize(true),
172+
])
173+
}
174+
```
175+
176+
You can specify resizing handles position of widgets. It can be any combination of n,ne,e,se,s,sw,w,nw or all (
177+
default: 'se').
178+
179+
```php
180+
use InvadersXX\FilamentGridstackDashboard\GridstackDashboardPlugin;
181+
182+
public function panel(Panel $panel): Panel
183+
{
184+
return $panel
185+
->plugins([
186+
GridstackDashboardPlugin::make()
187+
->resizable('all'),
188+
])
189+
}
190+
```
191+
146192
You can configure the navigationIcon, the navigationGroup and the navigationSort
147193

148194
```php

0 commit comments

Comments
 (0)