File

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

Description

Xam grid editing settings as template

Metadata

selector wm-editing-settings

Index

Properties
Inputs

Inputs

allowEditing
Type : null | "Cell" | "Row" | "None"
Default value : null

Defines the type of editing if allowed

isEnterKeyEditingEnabled
Type : boolean
Default value : false

Gets/sets whether the grid should enter in edit mode when pressing Enter

isF2EditingEnabled
Type : boolean
Default value : false

Gets/sets whether the grid should enter in edit mode when pressing F2

isMouseActionEditingEnabled
Type : string
Default value : 'DoubleClick'

Gets/sets whether the grid should enter in edit mode on mouse click

isOnCellActiveEditingEnabled
Type : boolean
Default value : false

Gets/sets whether the grid should enter in edit mode on cell activation

Properties

allowEditing
Type : null | "Cell" | "Row" | "None"
Default value : null
Decorators :
@Input()

Defines the type of editing if allowed

isEnterKeyEditingEnabled
Default value : false
Decorators :
@Input()

Gets/sets whether the grid should enter in edit mode when pressing Enter

isF2EditingEnabled
Default value : false
Decorators :
@Input()

Gets/sets whether the grid should enter in edit mode when pressing F2

isMouseActionEditingEnabled
Type : string
Default value : 'DoubleClick'
Decorators :
@Input()

Gets/sets whether the grid should enter in edit mode on mouse click

isOnCellActiveEditingEnabled
Default value : false
Decorators :
@Input()

Gets/sets whether the grid should enter in edit mode on cell activation

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 ""