From b24592d6de13412bc25af9bc462c506d16cc74cb Mon Sep 17 00:00:00 2001 From: Steve Clements Date: Mon, 12 Dec 2016 21:00:32 +0000 Subject: [PATCH] feat(panel): add uifIslightDismiss attribute Add `uif-is-light-dismiss` as an attribute of the Panel directive to allow the setting to determine whether clicking on the background overlay closes the panel. Default value is false. When not set, or set to false, clicking on the background overlay has no effect. When set to true, clicking on the background overlay closes the panel. Closes #434. --- src/components/panel/demo/index.html | 12 +++- src/components/panel/panelDirective.spec.ts | 70 +++++++++++++++++++++ src/components/panel/panelDirective.ts | 4 +- 3 files changed, 83 insertions(+), 3 deletions(-) diff --git a/src/components/panel/demo/index.html b/src/components/panel/demo/index.html index 5ffdc18..96fcb77 100644 --- a/src/components/panel/demo/index.html +++ b/src/components/panel/demo/index.html @@ -29,14 +29,22 @@

uifPanel Demo | <uif-panel>

In order for this demo to work you must first build the library in dev mode. (gulp build-lib --dev) +

Use this toggle to toggle the value of the 'uif-is-light-dismiss' property. If set to true, clicking on the overlay will close the Panel. The default value is false.

+ +

Basic Usage

+

Code: