Methods
Defined in l/durandal.d.ts:1442
Activates the activator, in its current state.
Returns
JQueryPromise
public activateItem( newItem: T in DurandalActivator<T> , activationData?: any ) : JQueryPromise
Defined in l/durandal.d.ts:1430
Activates the specified item.
Parameters
newItem: T in DurandalActivator<T>
The item to activate.
activationData?: any optional
Returns
JQueryPromise
Defined in l/durandal.d.ts:1436
Determines whether or not the activator, in its current state, can be activated.
Returns
JQueryPromise
public canActivateItem( newItem: T in DurandalActivator<T> , activationData?: any ) : JQueryPromise
Defined in l/durandal.d.ts:1422
Determines whether or not the specified item can be activated.
Parameters
Returns
JQueryPromise
public canDeactivate( close: boolean ) : JQueryPromise
Defined in l/durandal.d.ts:1448
Determines whether or not the activator, in its current state, can be deactivated.
Parameters
Returns
JQueryPromise
public canDeactivateItem( item: T in DurandalActivator<T> , close: boolean ) : JQueryPromise
Defined in l/durandal.d.ts:1406
Determines whether or not the specified item can be deactivated.
Parameters
Returns
JQueryPromise
public deactivate( close: boolean ) : JQueryPromise
Defined in l/durandal.d.ts:1454
Deactivates the activator, in its current state.
Parameters
Returns
JQueryPromise
public deactivateItem( item: T in DurandalActivator<T> , close: boolean ) : JQueryPromise
Defined in l/durandal.d.ts:1414
Deactivates the specified item.
Parameters
Returns
JQueryPromise
public equalityComparer( a: any , b: any ) : boolean
Parameters
Returns
boolean
Defined in l/durandal.d.ts:1464
Sets up a collection representing a pool of objects which the activator will activate. See below for details. Activators without an item bool always close their values on deactivate. Activators with an items pool only deactivate, but do not close them.
Parameters
Returns
DurandalActivator
public getDependenciesCount( ) : number
Returns
number
public getSubscriptionsCount( ) : number
Returns
number
public includeIn( includeIn: any )
Defined in l/durandal.d.ts:1459
Adds canActivate, activate, canDeactivate and deactivate functions to the provided model which pass through to the corresponding functions on the activator.
Parameters
public isActive( ) : boolean
Returns
boolean
public notifySubscribers( valueToWrite?: T in KnockoutSubscribableFunctions<T> , event?: string )
Parameters
valueToWrite?: T in KnockoutSubscribableFunctions<T> optional
event?: string optional
public peek( ) : T in KnockoutObservable<T>
Returns
T in KnockoutObservable<T>
public subscribe( callback: (newValue: T) => void , target?: any , event?: string ) : KnockoutSubscription
Parameters
callback: (newValue: T) => void
target?: any optional
event?: string optional
Returns
KnockoutSubscription
public subscribe( callback: (newValue: TEvent) => void , target: any , event: string ) : KnockoutSubscription
Parameters
callback: (newValue: TEvent) => void
target: any
event: string
Returns
KnockoutSubscription