File

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

Description

Placeholder for the add new row template object

Metadata

selector wm-xam-grid-add-new-row-settings
template
<ng-content></ng-content>
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 ""