File

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

Description

AllActive region

Extends

Region

Index

Properties
Methods
Accessors

Properties

activeViews
Type : IViewsCollection
Inherited from Region
Defined in Region:43
Behaviors
Type : IRegionBehaviorCollection
Default value : new RegionBehaviorCollection(this)
Inherited from Region
Defined in Region:76

The region behaviors in the region

Name
Type : string
Default value : null
Inherited from Region
Defined in Region:52

The region name

RegionManager
Type : IRegionManager
Inherited from Region
Defined in Region:60

The region manager of the region

viewNames
Type : SimpleDictionary<string | unknown>
Default value : new SimpleDictionary()
Inherited from Region
Defined in Region:68

The registered view by name in the region

views
Type : IViewsCollection
Inherited from Region
Defined in Region:44

Methods

Deactivate
Deactivate(view: any)
Inherited from Region
Defined in Region:23

Deactivate view in region

Parameters :
Name Type Optional
view any No
Returns : void
Remove
Remove(view: unknown)
Inherited from Region
Defined in Region:36

Remove view from region Since both Active an Views are the same collection it is only required to remove from ActiveViews.

Parameters :
Name Type Optional
view unknown No
Returns : void
Activate
Activate(view: unknown)
Inherited from Region
Defined in Region:116

Activate a view in the region

Parameters :
Name Type Optional
view unknown No
Returns : void
Add
Add(view: unknown, viewName?: string, flag?: boolean)
Inherited from Region
Defined in Region:132

Adds a new view to the region.

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

{IRegionManager}

GetView
GetView(name: string)
Inherited from Region
Defined in Region:171

Returns a view registered with the given name

Parameters :
Name Type Optional
name string No
Returns : unknown

{unknown}

Private GetViewInRegion
GetViewInRegion(view: unknown)
Inherited from Region
Defined in Region:197
Parameters :
Name Type Optional
view unknown No
Returns : any

Accessors

ActiveViews
getActiveViews()
import { Region, ViewsCollection } from './Region';
import { IViewsCollection } from './IViewsCollection';

/**
 * AllActive region
 *
 * @export
 * @class AllActiveRegion
 * @extends {Region}
 * @wType Microsoft.Practices.Prism.Regions.AllActiveRegion
 */
export class AllActiveRegion extends Region {
  public get ActiveViews(): IViewsCollection {
    return this.Views;
  }

  /**
   * Deactivate view in region
   *
   * @param {*} view
   * @memberof Region
   */
  Deactivate(view: any): void {
    throw new Error('Unable to deactivate a view in a AllActiveRegion');
  }

  /**
   * Remove view from region
   * Since both Active an Views are the same collection
   * it is only required to remove from ActiveViews.
   *
   * @param {unknown} view
   * @memberof Region
   * @wIgnore
   */
  Remove(view: unknown): void {
    (this.Views as ViewsCollection).remove(view);
  }
}

result-matching ""

    No results matching ""