From 5cb114df19708726de2a3963a415a2df446961c7 Mon Sep 17 00:00:00 2001 From: Alejo Arias Date: Wed, 28 Dec 2016 02:14:18 +0100 Subject: [PATCH] [uikit] When selecting a modal element it is also possible to pass ModalOptions (#13510) https://github.com/uikit/uikit/blob/5d0ce9baace9b824fdc65b09da0f1a17cddce2b3/src/js/core/modal.js#L15 Any of the possible modal options (bgclose, center, etc.) can be sent in a json as a second parameter when selecting a modal. --- uikit/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uikit/index.d.ts b/uikit/index.d.ts index cf2930bdaa..7a828101a1 100644 --- a/uikit/index.d.ts +++ b/uikit/index.d.ts @@ -150,7 +150,7 @@ declare namespace UIkit { * } * */ - (selector: string|JQuery): ModalElement; + (selector: string|JQuery, options?: ModalOptions): ModalElement; } /** * Create a smooth off-canvas sidebar that slides in and out of the page