src/ui/grid/services/smart-grid-util.service.ts
Methods |
Accessors |
| getGridRowHeight |
getGridRowHeight()
|
|
Measures the height of a single row in a Kendo UI Grid by creating a temporary grid off-screen and measuring the height of the first row
Returns :
number
|
| isHeaderTitleTruncated | ||||||||
isHeaderTitleTruncated(th: HTMLElement | null)
|
||||||||
|
Whether the header title is truncated in the live DOM.
Parameters :
Returns :
boolean
|
| measureBadgeNaturalWidth | ||||||||||||
measureBadgeNaturalWidth(badgeEl: HTMLElement, measureCell?: HTMLElement)
|
||||||||||||
|
Measures the snug width of a rendered badge host (smart-badge element).
Parameters :
Returns :
number
|
| measureBadgeNaturalWidthForText | ||||||||||||
measureBadgeNaturalWidthForText(text: string, measureContext: ISmartGridBadgeMeasureContext)
|
||||||||||||
|
Measures a badge that displays plain text (no value-list entry).
Parameters :
Returns :
number
|
| measureBadgeNaturalWidthForValue | ||||||||||||||||||||
measureBadgeNaturalWidthForValue(valueList: ValueList, valueKey: string, measureContext: ISmartGridBadgeMeasureContext, badgeComponentRef?: ComponentRef<SmartBadgeComponent>)
|
||||||||||||||||||||
|
Measures badge width by rendering the real SmartBadgeComponent offscreen with the same value list and key as the grid cell (SCLNG-1521).
Parameters :
Returns :
number
|
| measureColumnFilterNaturalWidth | ||||||||||||
measureColumnFilterNaturalWidth(root: HTMLElement, field: string)
|
||||||||||||
|
Measures the filter row cell natural width for a column.
Parameters :
Returns :
number
|
| measureColumnHeaderNaturalWidth | ||||||||||||||||||||
measureColumnHeaderNaturalWidth(th: HTMLElement | null, columnTitle: string, columnHeaderMeasureHost?: HTMLElement, gridRoot?: HTMLElement)
|
||||||||||||||||||||
|
Measures the natural width required to show the column header title (and optional header buttons from the live DOM) without truncation.
Parameters :
Returns :
number
|
| measureMaxBadgeNaturalWidthFromData | ||||||||||||||||||||||||||||||||||||||||
measureMaxBadgeNaturalWidthFromData(dataItems: any[], field: string, measureContext: ISmartGridBadgeMeasureContext, valueList?: ValueList, skipKeys?: Set
|
||||||||||||||||||||||||||||||||||||||||
|
Returns the widest natural badge width for distinct field values in the provided data rows. Reuses one offscreen SmartBadgeComponent per pass (SCLNG-1521).
Parameters :
Returns :
literal type
|
| rowHeight |
getrowHeight()
|
|
The height of a single grid row in pixels
Returns :
number
|