mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Durandal - Fixes to DialogContext. See below:
- Add blockoutOpacity to DialogContext - Mark name of getContext as optional All as per docs here: http://durandaljs.com/documentation/Showing-Message-Boxes-And-Modals.html#dialog-contexts
This commit is contained in:
parent
73e7125348
commit
e9fc032fe8
7
durandal/durandal.d.ts
vendored
7
durandal/durandal.d.ts
vendored
@ -690,6 +690,11 @@ declare module 'plugins/dialog' {
|
||||
* @param {object} context The composition context.
|
||||
*/
|
||||
compositionComplete(child: HTMLElement, parent: HTMLElement, context: composition.CompositionContext): void;
|
||||
|
||||
/**
|
||||
* Opacity of the blockout. The default is 0.6.
|
||||
*/
|
||||
blockoutOpacity?: number;
|
||||
}
|
||||
|
||||
interface Dialog {
|
||||
@ -728,7 +733,7 @@ declare module 'plugins/dialog' {
|
||||
* @param {string} [name] The name of the context to retrieve.
|
||||
* @returns {DialogContext} True context.
|
||||
*/
|
||||
export function getContext(name: string): DialogContext;
|
||||
export function getContext(name?: string): DialogContext;
|
||||
|
||||
/**
|
||||
* Adds (or replaces) a dialog context.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user