Class RegionManager

Hierarchy

Index

Methods

Methods

public addRegion(name: any, definition: any): Region

Parameters

  • name: any
  • definition: any

Returns

Region

public addRegions(regionDefinitions: any, defaults?: any): any

Parameters

  • regionDefinitions: any
  • defaults?: any optional

Returns

any

public all(iterator: (element: Marionette.Region<TModel>, index: number) => boolean, context?: any): boolean

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number) => boolean
  • context?: any optional

Returns

boolean

public any(iterator: (element: Marionette.Region<TModel>, index: number) => boolean, context?: any): boolean

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number) => boolean
  • context?: any optional

Returns

boolean

public bind(eventName: string, callback: Function, context?: any): any

Parameters

  • eventName: string
  • callback: Function
  • context?: any optional

Returns

any

public bind(eventName: string, callback: Function, context?: any): any

Parameters

  • eventName: string
  • callback: Function
  • context?: any optional

Returns

any

public close(): any

Returns

any

public closeRegions()

public contains(value: any): boolean

Parameters

  • value: any

Returns

boolean

public detect(iterator: (item: any) => boolean, context?: any): any

Parameters

  • iterator: (item: any) => boolean
  • context?: any optional

Returns

any

public each(iterator: (element: Marionette.Region<TModel>, index: number, list?: any) => void, context?: any): any

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number, list?: any) => void
  • context?: any optional

Returns

any

public every(iterator: (element: Marionette.Region<TModel>, index: number) => boolean, context?: any): boolean

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number) => boolean
  • context?: any optional

Returns

boolean

public filter(iterator: (element: Marionette.Region<TModel>, index: number) => boolean, context?: any): Region[]

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number) => boolean
  • context?: any optional

Returns

Region[]

public find(iterator: (element: Marionette.Region<TModel>, index: number) => boolean, context?: any): Region

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number) => boolean
  • context?: any optional

Returns

Region

public first(): Region

Returns

Region

public forEach(iterator: (element: Marionette.Region<TModel>, index: number, list?: any) => void, context?: any): any

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number, list?: any) => void
  • context?: any optional

Returns

any

public get(name: string): Region

Parameters

  • name: string

Returns

Region

public include(value: any): boolean

Parameters

  • value: any

Returns

boolean

public initial(): Region

Returns

Region

public initial(n: number): Region[]

Parameters

  • n: number

Returns

Region[]

public invoke(methodName: string, arguments?: Array<any>): any

Parameters

  • methodName: string
  • arguments?: Array<any> optional

Returns

any

public isEmpty(object: any): boolean

Parameters

  • object: any

Returns

boolean

public last(): Region

Returns

Region

public last(n: number): Region[]

Parameters

  • n: number

Returns

Region[]

public lastIndexOf(element: Region, fromIndex?: number): number

Parameters

  • element: Region
  • fromIndex?: number optional

Returns

number

public listenTo(object: any, events: string, callback: Function): any

Parameters

  • object: any
  • events: string
  • callback: Function

Returns

any

public listenTo(object: any, events: string, callback: Function): any

Parameters

  • object: any
  • events: string
  • callback: Function

Returns

any

public listenToOnce(object: any, events: string, callback: Function): any

Parameters

  • object: any
  • events: string
  • callback: Function

Returns

any

public listenToOnce(object: any, events: string, callback: Function): any

Parameters

  • object: any
  • events: string
  • callback: Function

Returns

any

public map(iterator: (element: Marionette.Region<TModel>, index: number, context?: any) => any[], context?: any): Array<any>

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number, context?: any) => any[]
  • context?: any optional

Returns

Array<any>

public off(eventName?: string, callback?: Function, context?: any): any

Parameters

  • eventName?: string optional
  • callback?: Function optional
  • context?: any optional

Returns

any

public off(eventName?: string, callback?: Function, context?: any): any

Parameters

  • eventName?: string optional
  • callback?: Function optional
  • context?: any optional

Returns

any

public on(eventName: string, callback?: Function, context?: any): any

Parameters

  • eventName: string
  • callback?: Function optional
  • context?: any optional

Returns

any

public on(eventName: string, callback?: Function, context?: any): any

Parameters

  • eventName: string
  • callback?: Function optional
  • context?: any optional

Returns

any

public once(events: string, callback: Function, context?: any): any

Parameters

  • events: string
  • callback: Function
  • context?: any optional

Returns

any

public once(events: string, callback: Function, context?: any): any

Parameters

  • events: string
  • callback: Function
  • context?: any optional

Returns

any

public pluck(attribute: string): Array<any>

Parameters

  • attribute: string

Returns

Array<any>

public reject(iterator: (element: Marionette.Region<TModel>, index: number) => boolean, context?: any): Region[]

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number) => boolean
  • context?: any optional

Returns

Region[]

public removeRegion(name: any)

Parameters

  • name: any

public removeRegions()

public rest(): Region

Returns

Region

public rest(n: number): Region[]

Parameters

  • n: number

Returns

Region[]

public select(iterator: any, context?: any): Array<any>

Parameters

  • iterator: any
  • context?: any optional

Returns

Array<any>

public some(iterator: (element: Marionette.Region<TModel>, index: number) => boolean, context?: any): boolean

Parameters

  • iterator: (element: Marionette.Region<TModel>, index: number) => boolean
  • context?: any optional

Returns

boolean

public stopListening(object?: any, events?: string, callback?: Function): any

Parameters

  • object?: any optional
  • events?: string optional
  • callback?: Function optional

Returns

any

public stopListening(object?: any, events?: string, callback?: Function): any

Parameters

  • object?: any optional
  • events?: string optional
  • callback?: Function optional

Returns

any

public toArray(): Array<any>

Returns

Array<any>

public trigger(eventName: string, args?: Array<any>): any

Parameters

  • eventName: string
  • args?: Array<any> optional

Returns

any

public trigger(eventName: string, args?: Array<any>): any

Parameters

  • eventName: string
  • args?: Array<any> optional

Returns

any

public unbind(eventName?: string, callback?: Function, context?: any): any

Parameters

  • eventName?: string optional
  • callback?: Function optional
  • context?: any optional

Returns

any

public unbind(eventName?: string, callback?: Function, context?: any): any

Parameters

  • eventName?: string optional
  • callback?: Function optional
  • context?: any optional

Returns

any

public without(values?: Array<any>): Region[]

Parameters

  • values?: Array<any> optional

Returns

Region[]