File

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

Description

Placeholder for the editing settings template object

Metadata

selector wm-xam-grid-editing-settings
template
<ng-content></ng-content>
import { Component, Input } from '@angular/core';

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

/**
 * Xam grid editing settings as template
 *
 * @export
 * @class EditingSettingsComponent
 */
@Component({
  selector: 'wm-editing-settings',
  template: ``,
})
export class EditingSettingsComponent {
  /**
   * Defines the type of editing if allowed
   *
   * @type {(null | 'Cell' | 'Row')}
   * @memberof EditingSettingsComponent
   */
  @Input()
  allowEditing: null | 'Cell' | 'Row' | 'None' = null;

  /**
   * Gets/sets whether the grid should enter in edit mode on mouse click
   *
   * @memberof EditingSettingsComponent
   */
  @Input()
  isMouseActionEditingEnabled = 'DoubleClick';

  /**
   * Gets/sets whether the grid should enter in edit mode on cell activation
   *
   * @memberof EditingSettingsComponent
   */
  @Input()
  isOnCellActiveEditingEnabled = false;

  /**
   * Gets/sets whether the grid should enter in edit mode when pressing Enter
   *
   * @memberof EditingSettingsComponent
   */
  @Input()
  isEnterKeyEditingEnabled = false;

  /**
   * Gets/sets whether the grid should enter in edit mode when pressing F2
   *
   * @memberof EditingSettingsComponent
   */
  @Input()
  isF2EditingEnabled = false;
}
Legend
Html element
Component
Html element with directive

result-matching ""

    No results matching ""