Features
- Change
<zgparam>
buildRestUrl
torestmode
- Added
celleditor
attribute to turn off cell editing wheneditor
oreditorcontrols
are set Whencelleditor
is set todisabled
andeditor
is turned on, double click edits the row - Added
XHTTPMethodOverride
header when sending POSTs for PUT, DELETE, and PATCH Modifiedbefore
CRUD events to allow manipulation of data - Modified validator to allow manipulation of data
- Added ability to connect to Firebase SDK subscription
- Added
<zgparam>
namesubscription
to set totrue
- Added ability to cancel certain actions via
before
event handlers. Use event.preventDefault:data:record:beforedelete
data:record:beforechange
data:cell:beforechange
data:record:beforeinsert
- Added display message when no records are found in the grid
- To customize message, added
[nodata]
attribute on<zinggrid>
- To customize message, added
<zgnodata>
element that can be created under<zinggrid>
- To customize message, added
- Return the value of the id field on
<zgcolumn index="recordkey"></zgcolumn>
when data is array of objects (previously only worked on named objects) - Added
<zgparam>
options for setting server error message- serverErrorMessage Sets the error message to display for the server error
- serverErrorPath Sets the path to the error message in the case of a JSON response
- Added token
[[serverMessage]]
to place returned message from the server in the error message - Added
numbertypeformatter
attribute to turn off auto formatting - Added validators
date
url
email
range
- Added support for custom validators
- Added
ZingGrid.registerValidator
API method - Added built in Number Validator
- Added validation error class to ZGDialog and ZGEditorRow
- Added validation error message to ZGDialog and ZGStatus
- Added
<zinggrid>
attributevalidationerrormessage
<zgparam>
New OptionsbuildRestUrl
True by default. Set to false to prevent REST URLs from being constructedurlSuffix
If using REST URLs, set a suffix to be appended to the URL. Usually an extension or a slash
<zgparam>
ShortcutscreateSrc
readSrc
updateRowSrc
updateCellSrc
deleteSrc
createMethod
readMethod
updateRowMethod
updateCellMethod
deleteMethod
- Added record token parsing within a URL Added
django
as anadapter
option - Added support for required columns for editing
- Added
[required]
attribute for<zgcolumn>
- Added
[validationrequiredmessage]
for<zgcolumn>
- Added
[validationrequiredmessage]
for<zinggrid>
Notable Fixes
- Fixed issue with
src
being set on<zgdata>
or in<zgparam>
- Fixed issues with 204 responses on PUT, PATCH, and DELETE
- Fixed the 'multicell' selector in card layout from overlapping the cell content below it. Changed the location of the selector checkbox inside the card cell to the righthand edge.
- Added
fullwidth
to the<cite>
element inside<zgsource>
shadowDOM to fill the horizontal space.zgsourcetextalign
now works as intended. - Fixed issues with zgstatus closing
- Fixed bug where data is added to grid when server returns error Fixed bug where editor mode is turned on when
editorcontrols
is set to "false" or "disabled" - Fixes for dynamic
<zgparam>
additions and removals - Fixed bug with custom
deleteBody
- Fixed issues with dynamic updating of
<zgcolumn>