ZingGrid 1.6.1
Released: Dec 18, 2023
Atualizações na 1.6.1
Recursos
- More button features for both <zg-button> and button column.
- Customizable borders forceBorder.
- Added [force-border] attribute to <zg-button>. As a boolean, it forces a border on built in buttons. Set attribute to disabled to remove border from custom buttons.
- Added [button-border] to <zg-column> which will be read in columns with type="button" | "remover" | "editor" | "duplicate".
- Add a handler handler.
- Added [handler] to <zg-button> to add a handler event to a custom button.
- Add a tooltip customTooltip.
- Added [custom-tooltip] to <zg-button> to add a tooltip on custom buttons.
- Added [type-button-tooltip] attribute to <zg-column> to set the tooltip on the button if the column type is button.
- Conditionally disable button typeButtonDisabled.
- Add [custom-disabled] to receive a function name that should return true or false.
- Updated [type-button-disabled] to receive a function name that should return true or false.
- Other minor features:
- Added [translate-newline] attribute to <zg-column> to allow to be set to "disable" to not convert \n to <br>.
- Added registerFilterer() API method to add custom filter to make custom filter available to ZingGrid when outside the window scope.
- Added which will not unset page, sort, search, filter, and columns on data change.
- Update data sent to cell:copy and cell:paste to include the full cell data object and then string that is actually copied or pasted. ZGData now contains data and copiedValue.
- Added cell:beforecopy event. Can change the value of ZGData.copiedValue and that will be what is added to the user clipboard.
- If [context-menu] attribute is set to "browser" the default browser's contextmenu will be used.
- Add parameter to API methods updateRecord() and updateRow() to disable row refresh after updating the data.
- Updated editor fields to use browser's autofill.
- Enabled [batch-edit] to be added to <zing-grid> without setting [editor] or [editor-controls].
- Changed functionality of aggregate column head and foot cells to be the aggregate of column instead of totals on the grid when possible.
Correções
- Updated CSS variables.
- Fixed horizontal scroll Issues.
- Updated <zg-button> cleanup for [handler] attribute.
- Fixed vertical align issues with buttons.
- Fixed loading order issues with <zg-button>, <zg-footer>, and <zg-source>.
- Removed error when date column does not contain date data.
- Fixed conflict with row selector and <zg-caption>.
- Fixed issues with mutation observer refreshing.
- Fixed grid:pagechange event firing time.
- Fixed bug with aggregate column modification.
- Fixed issues with focus after closing the details dialog.
- Updated [type-select-options] to reset on removal.
- Updated width on select filters.
- Fixed Angular issue with preventDefault alerts.
- Reverted style to allow for cell overflow in special cases.
- Fixed width of [<zg-no-data>] to extend to match the header width.
- Maintain horizontal scroll position after filtering to nodata.
- Fixed bug with filter on select column type.
- Fixed bug with setting the data after grid init but before grid load.
- Fixed bug with paging after insert.
- Fixed button style conflicts with Bootstrap.
- Modified theme colors in black and dark theme.
- Allow custom [head-cell] function to be defined after the grid.
- Fix positioning of card data.
- Hide clipboard pixel.
- Prevent row creation when validation fails.
- Fixed dialog alignment.
- Consider width of aggregate foot and head cells when calculating column width.
- Fixed horizontal scroll bar always showing when vertical gridlines are used.
- Fixed bug in disabling button.
- Fix RTL issues.
- Fixed bug with horizontal scrolling after edit.
- Fixed card mode race condition on load.
- Only fire column:filter event when the filter value changes.
- Adjusted the batch edit status message CSS to display nicer.
- Fixed bug with adding a new row when the data structure contains nested data.
- Fixed cleanup bug.
- Fixed issues with aggregate columns on other column removal.
- Fixed putting <zg-select> in caption, header, and footer.
- Fixed aggregate column head and foot cell functions.
- Fixed filter CSS.
- Fixed event oversights.
- Updated [type-button-disabled] to properly disable actions on click.
- Fixed positioning of icons when [dir="rtl"].
- Fixed bug on disconnect between head and body scroll.
- Update the local version of the record if the server returns the record object after insert or update.