plomino / Plomino

Powerful and flexible web-based application builder
33 stars 37 forks source link

Make datagrid actions conditional #504

Open jean opened 10 years ago

jean commented 10 years ago

Sometimes I want to present a datagrid that allows editing of rows, but not add/delete. Currently that requires inline javascript to hide the unwanted actions. Make it easier to specify what actions should be included.

ebrehault commented 10 years ago

Right. It might be added in the datagrid JS settings (we already have plominoDialogOptions, we could have plominoActionsOptions)

jean commented 10 years ago

Hmm, no need to use JS to do the hiding, that can be done in the page template while rendering. plominoDialogOptions is for use from JS.

ebrehault commented 10 years ago

ok up to you, so it ilmplies to add an extra param field, but that's fine