Description | Some flows require being able to add records to a grid. In order to support that, grids (FilterableGrid/Grid/DataGrid) will accept a new property named onNewRowProps. By default the property will be null, and when not null, a new button will be included in the grid.
The position of the button is fixed (bottom-right corner), and the button will be displayed on top of the grid content (a row). It should not hide anything from the footer, and neither does the scrollbar (add a margin in the last row if necessary).
When the button is clicked, the DataGrid will invoke the provided onNewRowProps function. Implementators will then do whatever they want to do in order to start the flow to add a new entry (i.e. open a form in a dialog to enter the data for the new row).
Another new property will be added to the grid: readonly. For now it will be used only to hide the button if the readonly prop is true.
The button has to be configurable so that it shows an icon, a text or both.
Have a look at the Jira ticket here: https://openbravo.atlassian.net/browse/RM-11351 [^] |