lekoala / silverstripe-tabulator

Integrating Tabulator into SilverStripe. Because GridField doesn't always cut it
MIT License
3 stars 0 forks source link

TabularGrid on frontend / PageController #1

Open silverstripesk opened 2 weeks ago

silverstripesk commented 2 weeks ago

Is it possible to use TabularGrid directly in PageController? As I see (getCompatLayer() method), controller with form should extend LeftAndMain (Silverstripe's or Admini's).

I need CRUD dataobjects on frontend. I created Form with TabularGrid in PageController, I can see list of items, but editing causes error because getCompatLayer returns null in such usecase.

Thanks for help.

lekoala commented 2 weeks ago

i've never tried so far but it should work as long as you provide the compatLayer to set icons, button styles etc

just extend the CompatLayerInterface and you should be good to go

let me know if you find any issue