BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<ejs-grid #grid [dataSource]='data' [toolbar]='toolbar' allowPaging='true' allowFiltering='true' [editSettings]='editSettings' [pageSettings]='pageSettings' [filterSettings]='filterSettings' (actionComplete)="complete($event)">
<e-columns>
...
</e-columns>
</ejs-grid> |
...
export class AppComponent {
public data: Object[];
...
complete(args: any): void {
var button = document.createElement('button');
button.setAttribute('class', 'e-control e-btn e-lib e-flat');
button.setAttribute('cssClass', 'e-flat');
button.innerHTML = 'clear value';
args.filterModel.dlgDiv.children[1].append(button);
button.addEventListener('click', function (e) {
(document.getElementsByClassName('e-flmenu-valuediv')[0].children[0].children[0] as any).value = ""; //cleared the entered text
(document.getElementsByClassName('e-flmenu-valuediv')[0].children[0].children[1] as any).value = ""; //cleared the entered text
})
}} |