projects/i-components/src/lib/components/xam-grid-settings/xam-grid-add-row.component.ts
Xam grid add new row settings as template
selector | wm-add-new-row-settings |
Properties |
Inputs |
allowAddNewRow | |
Type : "Top" | "Bottom"
|
|
Default value : 'Top'
|
|
Defines where the new row will be added |
disableAddNewRow | |
Type : boolean
|
|
Default value : false
|
|
Enables/Disables Add new row button |
allowAddNewRow |
Type : "Top" | "Bottom"
|
Default value : 'Top'
|
Decorators :
@Input()
|
Defines where the new row will be added |
disableAddNewRow |
Default value : false
|
Decorators :
@Input()
|
Enables/Disables Add new row button |
import { Component, Input } from '@angular/core';
/**
* Placeholder for the add new row template object
*
* @export
* @class XamGridAddRowComponent
*/
@Component({
selector: 'wm-xam-grid-add-new-row-settings',
template: '<ng-content></ng-content>',
})
export class XamGridAddNewRowSettingsComponent {}
/**
* Xam grid add new row settings as template
*
* @export
* @class AddNewRowSettingsComponent
*/
@Component({
selector: 'wm-add-new-row-settings',
template: ``,
})
export class AddNewRowSettingsComponent {
/**
* Defines where the new row will be added
*
* @type {('Top' | 'Bottom')}
* @memberof AddNewRowSettingsComponent
*/
@Input()
allowAddNewRow: 'Top' | 'Bottom' = 'Top';
/**
* Enables/Disables Add new row button
*
* @type {boolean}
* @memberof AddNewRowSettingsComponent
*/
@Input()
disableAddNewRow = false;
}