Skip to content

Commit

Permalink
Allow reorder of data grid fields (#224)
Browse files Browse the repository at this point in the history
* [chg] allow reorder of data grid fields

* [fix] widget props
  • Loading branch information
pnicolli authored Dec 13, 2023
1 parent cc4b961 commit e7bad20
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ Changelog
6.1.5 (unreleased)
------------------

- Nothing changed yet.
- Allow reorder of data grid fields.
[pnicolli]


6.1.4 (2023-12-04)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,12 @@ class IPuntoDiContatto(model.Schema, IDesignPloneContentType):
form.widget(
"value_punto_contatto",
DataGridFieldFactory,
frontendOptions={"widget": "data_grid"},
frontendOptions={
"widget": "data_grid",
"widgetProps": {
"allow_reorder": True,
},
},
)

form.widget(
Expand Down
7 changes: 6 additions & 1 deletion src/design/plone/contenttypes/interfaces/servizio.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,12 @@ class IServizio(model.Schema, IDesignPloneContentType):
form.widget(
"timeline_tempi_scadenze",
DataGridFieldFactory,
frontendOptions={"widget": "data_grid"},
frontendOptions={
"widget": "data_grid",
"widgetProps": {
"allow_reorder": True,
},
},
)
form.widget("canale_digitale_link", LinkFieldWidget)

Expand Down

0 comments on commit e7bad20

Please sign in to comment.