File

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

Description

Placeholder for the selection settings template object

Metadata

selector wm-xam-grid-selection-settings
template
<ng-content></ng-content>
import { Component, Input } from '@angular/core';
import { XamSelectionMode, CellSelectionAction } from '@mobilize/wms-framework';

/**
 * Placeholder for the selection settings template object
 *
 * @export
 * @class XamGridSelectionSettingsComponent
 */
@Component({
  selector: 'wm-xam-grid-selection-settings',
  template: `<ng-content></ng-content>`,
})
export class XamGridSelectionSettingsComponent {}

/**
 * Xam grid selection settings as template
 *
 * @export
 * @class SelectionSettingsComponent
 */
@Component({
  selector: 'wm-selection-settings',
  template: ``,
})
export class SelectionSettingsComponent {
  /**
   * Xam grid row selection
   *
   * @type {XamSelectionMode}
   * @memberof SelectionSettingsComponent
   */
  @Input()
  rowSelection: XamSelectionMode = XamSelectionMode.None;

  /**
   * Xam grid cell selection
   *
   * @type {XamSelectionMode}
   * @memberof SelectionSettingsComponent
   */
  @Input()
  cellSelection: XamSelectionMode = XamSelectionMode.Multiple;

  /**
   * Xam grid column selection
   *
   * @type {XamSelectionMode}
   * @memberof SelectionSettingsComponent
   */
  @Input()
  columnSelection: XamSelectionMode = XamSelectionMode.None;

  /**
   * Gets/sets the default cell click action. Either to select a cell
   * or to select a row.
   *
   * @memberof SelectionSettingsComponent
   */
  @Input()
  cellClickAction = CellSelectionAction.SelectCell;
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""