RealGrid2 API
Interface
CellLayoutHeader

CellLayoutHeader

Setting information of cell layout header Model

Signature:

export interface CellLayoutHeader 

Remarks

string When given as is set to text .

When given as boolean, it is set to visible.

If text is not set separately, the column name is specified as text.

Example

{
 text: 'group1',
 visible: true
}

Properties

PropertyTypeDescription
exportStyleNamestringStyle class name to be applied when exporting to Excel
rowsnumberrow count of header cell
showTooltipbooleanTooltip visibility
styleNamestringStyle class name to be applied when setting layout
textstringHeader text to be displayed when setting layout
tooltipEllipsisOnlybooleanWhether to show tooltips for cells in ellipsis state
visiblebooleanVisibility

Properties Desc

exportStyleName

Style class name to be applied when exporting to Excel

Type - string


rows

row count of header cell

Type - number

Remarks:

It is used to match the height of the header when groups of multiple levels are mixed.

Applicable only to group headers

Example:

var layout = [{
 name:"group0",
 items:[
 { name:"group0-1", items:["col1", "col2", "col3"] },
 { name:"group0-2", items:["col4", "col5", "col6"] }]
}, {
 name: "group1",
 header: {text:"group1", rows:2},
 items: ["col7", "col8"]
}]

showTooltip

Whether to display tooltips

Type - boolean

Remarks:


styleName

Style class name to be applied when setting layout

Type - string


text

Header text to be displayed when setting layout

Type - string


tooltipEllipsisOnly

Whether to show tooltips for cells in ellipsis state

Type - boolean


visible

Visibility

Type - boolean

Remarks:

Applicable only to group headers