Release Information
- Major Performance Enhancement Changes (tested at 1k/10k rows)
- 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
Bug Fixes
- Allow server error messages to be set on read requests
- Fixed bug with
serverErrorMessage
being set to[[serverMessage]]
- Fixed bug with
setCardTemplate
to not require a card to already exist before using - Fixed bug with firebase collection and deleting rows
- Fixed bug when setting columns after load
- Changed removeRow and
updateRow
to take a row index as parameter - Added removeRecord and
updateRecord
that takes a row ID as parameter - Allow
nodata
text to display when no src or data is set - Fixed
nodata
dynamic change Fixed bugs with modifying cell edit status after load - Modified
detailsRenderer
to be able to return a string that will be the contents of the dialog - Modified renderer to be able to return a string that will be the contents of the cell
- Fixed bug with
arrayslice
Fixed minor spanish issues in es.js - Fixed bug with toggle name/value pairs
- Fixed bug with
celleditor
being disabled - Fixed
loadByPage
issues withstartAtValue
and paging - Fixed
loadByPage
issues with inserts that return the full dataset - Dynamically update
<zg-column>
typeelementattributename
andtypeelementtagname
attributes - Dynamically update
<zg-column>
typeiframeratio
attribute - Fixes with iframe width render
- Dynamically update
<zg-column>
,typeimagealt
andtypeimagemask
attributes - Dynamically update
<zg-column>
typeurltext
andtypeurlicon
attributes - Dynamically update
<zginput>
type
attribute - Dynamically update
<zginput>
action
attribute - Added card header when row selector is turned on, but edit controls are not
- Fixed issues with insert record showing up in context menu when it should not
- Fixed issue with insert record here showing up in context menu when it should not
- Fixed
typeselectoptions
to be flexible in data received in array format - Fixed
setNoData()
issues - Fixed dynamic update of
typenumberformatting
- Fixed sorting of checkboxes
- Fixed sorting of mixed data types
- Fixed dynamic update of
typecheckboxlabel
- Fixed
typeRadioOptions
with object instansitation - Fixed filter with comma separated items
- Updated local updates to display update message
- Updated
registerNamespace
to allow for an unnamed default - Fixed issues with server side sorting Small performance fixes
- Fixed bug with editor when index is in array form
- Fixed bug with editor when index is in negative array form
- Fixed bug with details renderer when
arrayslice
is used - Fixed bug with server sorter
- Fixed big bug with
nodata
and then loading data - Fixed bug with
cell:render
event - Fixed bug with
<zgsearch>
losing focus on click - Fixed
<zg-pager>
Border Issue - Fixed the pager's borderbottom variable to include the missing generic
zgpagerborder
value as its fallback, to match the other borderside values. - Namespaced boxshadow CSS variableChanged
boxshadow
to a namespacedzgboxshadow
to better help avoid parentscope bleed,and to bring it in line with the other grid variables. - Fixed issue with header width after removing all rows
- Update value attribute on
<zgcell>
if value is updated Display no label on button if index is undefined - Allow
filterColumn
API method to match on value or text Fixed bug withtypeselectoptions
not updating the filter - Updated server side sort to work with URL tokens
- Fixed bug with
sort
attribute not dynamically updating - Updated
range
column type to display as a number - Fixed bug with range validation Fixed bug with contextmenu "Insert Here" option
- Fixed bug with
rownumber
not presenting in card header - Fixed bug with selector column not being displayed with
editorcontrols
turned on - Fixed bug with editor column not being displayed with
selectorcontrol
turned on - Fixed discrepencies with numbers attributes and being set via attribute or property
- Fixed bugs with server side sorting/searching and refreshing
- Fixed bug between
staticmenu
and selector - Cleaned up data returned in
grid:select
event - Fixed bug with removing grid with custom buttons
- Fixed issues with user's custom
<zg-menu>
- Removed dead code Fixed issues with changing index on
<zg-column>
- Fixed header issues with details dialog
- Fixed display bugs with details dialog
- Fixed issues with server side sorting on load
- Fixed dynamic updating of
cellbreak
on<zg-column>
- Fixed bug with
cellbreak
not being honored on<zg-column>
- Fixed bug with clearing
typeselectoptions
attribute - Fixed bug with setting
sorter
attribute to invalid method - Fixed bug with removing
sort
attribute from<zg-column>
- Fixed bug with copying null data
- Fixed expected behavior for
[confirmDelete]
when set to false in js - Add ZGCaption when
[rowSelector]
enabledAdding the caption when feature is enables allows access to button to remove selected rows.