File

projects/wms-framework/src/lib/models/events/SelectionChangedEventArgs.ts

Description

SelectionChangedEventArgs class.

Index

Properties
Accessors

Constructor

constructor(removedItems: SimpleList<unknown>, addedItems: SimpleList<unknown>)

Creates an instance of SelectionChangedEventArgs.

Parameters :
Name Type Optional
removedItems SimpleList<unknown> No
addedItems SimpleList<unknown> No

Properties

_addedItems
Type : SimpleList<unknown>
Default value : new SimpleList<unknown>()
_removedItems
Type : SimpleList<unknown>
Default value : new SimpleList<unknown>()

Accessors

AddedItems
getAddedItems()

Gets a list that contains the items that were selected.

setAddedItems(value: SimpleList<unknown>)

Sets a list that contains the items that were selected.

Parameters :
Name Type Optional
value SimpleList<unknown> No
Returns : void
RemovedItems
getRemovedItems()

Gets a list that contains the items that were unselected.

setRemovedItems(value: SimpleList<unknown>)

Sets a list that contains the items that were unselected.

Parameters :
Name Type Optional
value SimpleList<unknown> No
Returns : void
import { SimpleList } from '../../baseframework/collections';

/**
 * SelectionChangedEventArgs class.
 *
 * @export
 * @class SelectionChangedEventArgs
 * @wType Telerik.Windows.Controls.SelectionChangedEventArgs
 */
export class SelectionChangedEventArgs {
  /**
   * Private property for addedItems.
   */
  #_addedItems: SimpleList<unknown> = new SimpleList<unknown>();

  /**
   * Private property for removedItems.
   */
  #_removedItems: SimpleList<unknown> = new SimpleList<unknown>();

  /**
   * Creates an instance of SelectionChangedEventArgs.
   * @param {SimpleList<unknown>} removedItems
   * @param {SimpleList<unknown>} addedItems
   * @memberof SelectionChangedEventArgs
   */
  constructor(
    removedItems: SimpleList<unknown>,
    addedItems: SimpleList<unknown>
  ) {
    this.AddedItems = addedItems;
    this.RemovedItems = removedItems;
  }

  /**
   * Gets a list that contains the items that were selected.
   *
   * @type {SimpleList<unknown>}
   * @memberof SelectionChangedEventArgs
   */
  get AddedItems(): SimpleList<unknown> {
    return this.#_addedItems;
  }

  /**
   * Sets a list that contains the items that were selected.
   *
   * @memberof SelectionChangedEventArgs
   */
  set AddedItems(value: SimpleList<unknown>) {
    this.#_addedItems = value;
  }

  /**
   * Gets a list that contains the items that were unselected.
   *
   * @type {SimpleList<unknown>}
   * @memberof SelectionChangedEventArgs
   */
  get RemovedItems(): SimpleList<unknown> {
    return this.#_removedItems;
  }

  /**
   * Sets a list that contains the items that were unselected.
   *
   * @memberof SelectionChangedEventArgs
   */
  set RemovedItems(value: SimpleList<unknown>) {
    this.#_removedItems = value;
  }
}

result-matching ""

    No results matching ""