|
public beforeDialogClose = function (args: any): void {
if ((document.getElementById('VoucherNo_filterBarcell') as HTMLInputElement).value === '') {
args.cancel = true
}
}
|
|
public buttons: Object = [
{
'click': this.hideDialog.bind(this),
buttonModel: {
content: 'OK',
// isPrimary: true // Remove this configuration
}
},
{
'click': this.hideDialog.bind(this),
buttonModel: {
content: 'Cancel'
}
}
];
|
|
<code>
public buttons: Object = [
{
'click': this.hideDialog.bind(this),
// Accessing button component properties by buttonModel property
buttonModel: {
content: 'OK',
cssClass: 'e-primary'
}
},
{
'click': this.hideDialog.bind(this),
buttonModel: {
content: 'Cancel'
}
}
];
</code> |