File

projects/i-components/src/lib/components/xam-grid-settings/xam-grid-add-row.component.ts

Description

Xam grid add new row settings as template

Metadata

selector wm-add-new-row-settings

Index

Properties
Inputs

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

Properties

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;
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""