jqwidgets-scripts-custom
Version:
jQWidgets is an advanced jQuery, Angular 7, Vue, React, ASP .NET MVC, Custom Elements and HTML5 UI framework.
38 lines (29 loc) • 1.2 kB
HTML
<jqxDataTable [theme]="'material'" #myDataTable
(onRowSelect)="tableOnRowSelect($event)" (onRowUnselect)="tableOnRowUnselect($event)"
[width]="getWidth()" [source]="dataAdapter" [columns]="columns" [altRows]="true">
</jqxDataTable>
<div style="margin-top: 10px; margin-left: 10px">
<div><strong>Settings</strong></div>
Select Row:
<jqxInput [theme]="'material'" #myInput
[width]="60" [height]="30" [value]='0'>
</jqxInput>
<br />
<br />
<jqxButton [theme]="'material'" style="float: left" (onClick)="rowSelectBtnOnClick()"
[width]="105" [height]="30">
Select
</jqxButton>
<jqxButton [theme]="'material'" style="float: left; margin-left: 5px" (onClick)="clearSelectionBtnOnClick()"
[width]="135" [height]="30">
Clear Selection
</jqxButton>
<div style="clear: both"></div>
<div style="margin-top:10px" #selectedRows></div>
<br />
<div>Selection Mode:</div>
<jqxDropDownList [theme]="'material'" (onChange)="dropDownOnChange($event)"
[height]="30" [source]="['Single Row','Multiple Rows']"
[selectedIndex]="1" [autoDropDownHeight]="true">
</jqxDropDownList>
</div>