
Adds major performance enhancements.
Features
- Major performance enhancements.
- Added
updateRowOptions
as an option for<zgparam>
as a shortcut forupdateOptions: {row: ...
. - Added
updateCellOptions
as an option for<zgparam>
as a shortcut forupdateOptions: {cell: ...
IfserverErrorPath
is set, butserverErrorMessage
is not,serverErrorMessage
defaults to[[serverMessage]]
. - Added
typeurlsrc
as an attribute to<zg-column>
. - Allow
typeurlsrc
to have tokens. - Updated edit templates to allow
<select>
elements to have token values set:<select name="storyType" value="[[record.story_type]]">
. - Updated
typeselectoptions
attribute to allow the first entry to be set with value '' and name to be displayed for the blank entry:typeselectoptions='[{"name": "ALL", "value": ""}, 123, 456, 789]'
. - Added in card object to
new ZingGrid
config syntax Fixed bugs withtypebuttonicon
,typebuttonlabel
,typebuttondisabled
being updated on change. - Added
typedatefromnow
attribute to date columns to display date as 'ago/in' times. - Added
F
token to date format to display formatted columns inago/in
times. - Added
zgRef.formatDate
andzgRef.fromNow
API methods to use in renderers. - Added
ZingGrid.formatDate
andZingGrid.fromNow
API methods. - Added textarea to be able to use with tokens in add/edit forms.
- Added
[columnwidth]
attribute to<zinggrid>
to set the column width for every column. - Added
typenumbermaxdecimals
attribute to number columns to indicate the maximum number of decimals to display. - Added
typenumberdecimals
attribute to number columns to indicate the exact number of decimals to display. - Added color editor to save as original type.
- Added
typeselectoptions
to accept name/value pairs. - Added gravatar celltype Added support for array based data in columns.
- Added
arrayindex
attribute to indicate which property of an array object to use after the slice: In the case of status[0].title, the arrayindex would be set to title. - Added
arrayslice
attribute to indicate which index or indexes to render to the column. - Added support for direct array access in
<zg-column>
index
attribute: status.0 or status.1. - Added support for last item in an array access in
<zg-column>
index` attribute: status.1. - Added details renderer to view more details on column click.
- Added
detailsrenderer
attribute to<zg-column>
. - Added
detailstemplate
attribute to<zg-column>
. - Added render support for \n in string.
- Updated
button
column type to have the following attributes:typebuttonlabel
,typebuttonicon
,typebuttondisabled
,typebuttonurl
,typebuttonhandler
. - Update first four attributes above to accept values in token format:
[[record.label]]
. - Added in
card
attribute to<zinggrid>
which will take an object with the card settings.