July 2017
Intermediate to advanced
384 pages
8h 23m
English
The TreeTable component supports three kinds of selections such as single, multiple, and checkbox. The single selection is provided by enabling the selectionMode property on tree table and the selection attribute, which holds the selected tree table node.
The TreeTable component with a single selection feature to select a favorite tourist place would be written as follows:
<p-treeTable [value]="singleSelectionTreeTable" selectionMode="single" [(selection)]="selectedTouristPlace (onNodeSelect)="nodeSelect($event)" (onNodeUnselect)="nodeUnselect($event)" (onRowDblclick)="onRowDblclick($event)" > <p-header>Singe Selection</p-header> <p-column field="name" header="Name"></p-column> <p-column ...
Read now
Unlock full access