File

projects/wms-framework/src/lib/regionsframework/IRegion.ts

Description

IRegion interface.

Index

Properties
Methods

Methods

Activate
Activate(view: unknown)

Activate the view in the region

Parameters :
Name Type Optional
view unknown No
Returns : void
Add
Add(view: unknown, str?: string, flag?: boolean)

Add a view to the region

Parameters :
Name Type Optional
view unknown No
str string Yes
flag boolean Yes
Returns : IRegionManager

{IRegionManager}

Deactivate
Deactivate(view: unknown)

Deactivate a view from the region

Parameters :
Name Type Optional
view unknown No
Returns : void
GetView
GetView(name: string)

Gets a view by the name registered

Parameters :
Name Type Optional
name string No
Returns : any
Remove
Remove(view: unknown)

Remove a view from the region

Parameters :
Name Type Optional
view unknown No
Returns : void

Properties

ActiveViews
ActiveViews: IViewsCollection
Type : IViewsCollection

The active view collection

Behaviors
Behaviors: IRegionBehaviorCollection
Type : IRegionBehaviorCollection

The region behaviors collection

Name
Name: string
Type : string

The region name

RegionManager
RegionManager: IRegionManager
Type : IRegionManager

Region manager

Views
Views: IViewsCollection
Type : IViewsCollection

The view collection

import { IRegionBehaviorCollection } from './IRegionBehaviorCollection';
import { IRegionManager } from './IRegionManager';
import { IViewsCollection } from './IViewsCollection';

/**
 * IRegion interface.
 *
 * @export
 * @interface IRegion
 * @wInterface Microsoft.Practices.Prism.Regions.IRegion
 */
export interface IRegion {
  /**
   *  Region manager
   *
   * @type {IRegionManager}
   * @memberof IRegion
   */
  RegionManager: IRegionManager;

  /**
   * The region name
   *
   * @type {string}
   * @memberof IRegion
   */
  Name: string;

  /**
   * The active view collection
   *
   * @type {IViewsCollection}
   * @memberof IRegion
   */
  ActiveViews: IViewsCollection;

  /**
   * The view collection
   *
   * @type {IViewsCollection}
   * @memberof IRegion
   */
  Views: IViewsCollection;

  /**
   * The region behaviors collection
   *
   * @type {IRegionBehaviorCollection}
   * @memberof IRegion
   */
  Behaviors: IRegionBehaviorCollection;

  /**
   * Activate the view in the region
   *
   * @param {unknown} view
   * @memberof IRegion
   */
  Activate(view: unknown): void;

  /**
   * Add a view to the region
   *
   * @param {unknown} view
   * @param {string} [str]
   * @param {boolean} [flag]
   * @return {*}  {IRegionManager}
   * @memberof IRegion
   */
  Add(view: unknown, str?: string, flag?: boolean): IRegionManager;

  /**
   * Deactivate a view from the region
   *
   * @param {unknown} view
   * @memberof IRegion
   */
  Deactivate(view: unknown): void;

  /**
   * Gets a view by the name registered
   *
   * @param {string} name
   * @returns {*}
   * @memberof IRegion
   */
  GetView(name: string): any;

  /**
   * Remove a view from the region
   *
   * @param {unknown} view
   * @memberof IRegion
   */
  Remove(view: unknown): void;
}

result-matching ""

    No results matching ""