luid-table-grid

A table directive to display any data

Features

Supported arguments

Usage

 <luid-table-grid header="headerTree" datas="people" height="500"></luid-table-grid>
 // example header
{
node: null,
children: [
	{
		node: {
			filterType: Lui.Directives.FilterTypeEnum.TEXT,
			fixed: true,
			label: "id",
			width: 20,
			getValue: function (someone) { return someone.id; },
			getOrderByValue: function (someone) { return someone.id; },
			colspan: null,
			hidden: false,
			rowspan: null,
			textAlign: "right",
		},
		children: []
	},
	{
		node: {
			filterType: Lui.Directives.FilterTypeEnum.SELECT,
			fixed: false,
			label: "name",
			width: 20,
			getFilterValue: function (someone) { return someone.name; },
			getValue: function (someone) { return someone.name; },
			colspan: null,
			hidden: false,
			rowspan: null,
			textAlign: "left",
		},
		children: [],
	},
]
}

Demo

{{numberOfRow(people)}}/{{people.length}} are in the filtered dataset
{{numberOfRow(people2)}}/{{people2.length}} are in the filtered dataset