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:
Massimo Hamilton 2016-08-23 08:52:49 +01:00
parent 73e7125348
commit e9fc032fe8

View File

@ -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.