Features
- Renamed attribute
attach
toposition
on<zg-caption>
- Renamed event
cell:contextmenu
tocell:rightclick
- Renamed attribute
selector-control
torow-selector
on<zing-grid>
- Renamed column type
rownumber
torow-number
- Renamed attribute
server-render
toserver-rendered
on<zing-grid>
- Renamed attribute value
search="false"
tosearch="disabled"
on<zg-column>
- Renamed attribute value
sort="false"
tosort="disabled"
on<zg-column>
- Renamed attribute value
filter="false"
tofilter="disabled"
on<zg-column>
- Renamed attribute value
enctype
torequestType
on<zg-param>
- Added
both
as an option forattach
attribute on<zg-caption>
- Added attribute
position
to<zg-pager>
- Added attribute
position
to<zg-source>
- Added attribute
loadmask
to<zing-grid>
- Added attribute value
disabled
toloadmask
to turn off theloadmask
- Added attribute
pagerposition
to accept pager position options (top, bottom) - Added
zgbuttonpadding
in the padding chain for custom<zg-button>
elements, with a default fallback - Added attribute
[hidden]
to<zg-param>
and<zg-data>
- Added event
grid:contextmenuopen
to fire whenstatic-menu
is opened - Added attribute
loading-text
on<zing-grid>
it will set the text that displays in the<zg-load-mask>
on load - Added new CSS variables for button states
- Added new css variables for
<zg-card>
- Added event
grid:pageprev
- Added event
grid:pagenext
- Added event
grid:pagefirst
- Added event
grid:pagelast
- Added method
select
to programatically select cells - Changed attribute
pager
to be a presence attribute. No longer accepts values - Changed attribute value
draggable="false"
todraggable="disabled"
on<zg-column>
- Changed attribute value
header-auto-format="false"
toheader-auto-format="disabled"
on<zg-column>
- Changed attribute value
header-auto-format="false"
toheader-auto-format="disabled"
on<zing-grid>
- Changed the even and odd CSS variables to have a clearer semantic naming
- Changed CSS variable
zgrowcardheadbackground_editor_even
tozgrowcardbackground_editor_even
- Changed CSS variable
zgrowcardheadbackground_editor_odd
tozgrowcardbackground_editor_odd
- Updated/added CSS variables (normal and hover states)
- Updated
zinggridborder
variable usage - Updated attribute
static-menu
is set andcontext-menu
is not set,context-menu
is added in. - Updated cardmode item CSS variables when in
editor
mode - Updated
zg-input
to acceptvalue
andtype
when noaction
is set. - Moved the default value into the var chain instead of defining in
default.css
- Moved the location of this variable call so that it now affects the message icon and text together
- Removed variable as fallback value from interior elements to limit the scope to just the
<zing-grid>
tag - Removed
zgfootwidth
- Removed CSS variable for process that should be avoided/discouraged
- Removed explicit setting of the cursor via javascript
- When using a
<zg-card>
editor, it is now possible to use theeditor
attribute with or without anedit-template
- Audited all
<zg-button>
CSS variables - Split
sorter
intosort
andsorter
on<zing-grid>
sort
is a boolean indicating if sort is turned on or off.sorter
sets the custom sorting function if overriding the default. - Normalized element CSS variables
- Modified how the
zinggridborderradius
CSS variable applies due to the limitations of html table display.If variable is defined, and a caption and/or pager is shown, those elements will get the radius. Otherwise,additional CSS will need to be applied to add the radius to other grid elements.
New Documentation
Notable Fixes
- Fixed bug where boolean attributes were not being reflected via API Methods.
- Fixed bug where
setSort
was not working for eithertrue
orfalse
- Fixed
toggleColumn
API Method to auto detect if the column should be hidden or shown - Fixed getHeaderAutoFormat() response when value is not set.
- Fixed
setCardTemplate
method to set a card template after the grid has rendered - Fixed grid:scroll event bug Fixed grid:keydown:esc event bug
- Fixed bugs related to
contentwidth
attribute on<zg-column>
- Fixed
<zg-foot>
behavior to apply border variables correctly - Fixed the event
record:beforeinsert
to return the proper data as listed in the docs - Fixed bugs with deselecting cells on escape or layout change