From 448dd0c63ea08327c2254ef6036c18384f864fde Mon Sep 17 00:00:00 2001
From: Jiawei Cai <83235260+jiaweicai92@users.noreply.github.com>
Date: Fri, 20 Aug 2021 10:55:53 -0400
Subject: [PATCH] [Chore] Panel Disable Option (#824)
* add disable option
* add documentation
* update on feedbacks
* rm trailing whitespace
* use ngClass for disabling
* update on style for style
* update code climate
* cleanup
* update on variable
---
.../go-action-sheet/go-panel/go-panel.component.html | 1 +
.../go-action-sheet/go-panel/go-panel.component.scss | 10 ++++++++++
.../go-action-sheet/go-panel/go-panel.component.ts | 4 +++-
.../action-sheet-panel-docs.component.html | 8 ++++++++
.../action-sheet-panel-docs.component.ts | 1 +
5 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/projects/go-lib/src/lib/components/go-action-sheet/go-panel/go-panel.component.html b/projects/go-lib/src/lib/components/go-action-sheet/go-panel/go-panel.component.html
index 86521accb..3ec89597a 100644
--- a/projects/go-lib/src/lib/components/go-action-sheet/go-panel/go-panel.component.html
+++ b/projects/go-lib/src/lib/components/go-action-sheet/go-panel/go-panel.component.html
@@ -17,6 +17,7 @@
+
+
disablePanel
+
+ This determines whether the panel will be disabled or not.
+ Defaults to false
.
+
+
+
diff --git a/projects/go-style-guide/src/app/features/ui-kit/components/action-sheet-docs/components/action-sheet-panel-docs/action-sheet-panel-docs.component.ts b/projects/go-style-guide/src/app/features/ui-kit/components/action-sheet-docs/components/action-sheet-panel-docs/action-sheet-panel-docs.component.ts
index 52eb792b6..b84aadd6b 100644
--- a/projects/go-style-guide/src/app/features/ui-kit/components/action-sheet-docs/components/action-sheet-panel-docs/action-sheet-panel-docs.component.ts
+++ b/projects/go-style-guide/src/app/features/ui-kit/components/action-sheet-docs/components/action-sheet-panel-docs/action-sheet-panel-docs.component.ts
@@ -16,6 +16,7 @@ export class ActionSheetPanelDocsComponent {
@Input() panelContent: string;
@Input() target: string = '_blank';
@Input() closeOnClick: boolean = true;
+ @Input() disablePanel: boolean = false;
@Output() action: EventEmitter = new EventEmitter();
`;