From eae3f6bf74799baad6997fcafd9545abd2a57ab4 Mon Sep 17 00:00:00 2001 From: MscrmTools Date: Tue, 26 Nov 2019 13:06:23 +0100 Subject: [PATCH 1/3] Added documentation for Custom Switch --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index 884f98d..bc23c89 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,9 @@ # PCF-Controls Controls using PowerApps Components Framework +[NN Checkboxes](#nn-checkboxes) +[Custom Switch](#custom-switch) + ## NN Checkboxes [Download](https://github.com/MscrmTools/PCF-Controls/releases/) @@ -36,4 +39,26 @@ This is the list of parameters that can be set on the control |**Switch On color**|Default background color when the switch is On. *This parameter is overriden by the parameter **Background color***||X| +## Custom Switch + +[Download](https://github.com/MscrmTools/PCF-Controls/releases/) + +### Purpose +The purpose of this control is to allow user to add switch for Two Options attribute and apply the color and shape they want to fit with the color of the company. + +### Samples + +![Screenshot](https://github.com/MscrmTools/PCF-Controls/blob/master/CustomSwitch/screenshots/capture.png?raw=true) + +### Configuration +This is the list of parameters that can be set on the control + +|Parameter|Description|Required|Bound to an attribute| +|---------|-----------|:----:|:---:| +|**Attribute**|The attribute to display as a switch|X|X| +|**Off color**|Color used for the switch background when the value is Off||| +|**On color**|Color used for the switch background when the value is On||| +|**Switch color**|Color used for the switch||| +|**Layout**|Square or Round|X|| +|**Display label**|Indicates if selected option label must be displayed next to the switch|| From 5f46afdcfef5756eae06ece73b96e6da9ab979b5 Mon Sep 17 00:00:00 2001 From: MscrmTools Date: Tue, 26 Nov 2019 13:06:51 +0100 Subject: [PATCH 2/3] Fix PCF control list --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index bc23c89..a7f4e84 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ Controls using PowerApps Components Framework [NN Checkboxes](#nn-checkboxes) + [Custom Switch](#custom-switch) ## NN Checkboxes From 9970bfb16ed7908672dad0f87c7a599655834901 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 6 Apr 2020 15:06:54 +0000 Subject: [PATCH 3/3] Bump acorn from 5.7.3 to 5.7.4 in /CustomSwitch Bumps [acorn](https://github.com/acornjs/acorn) from 5.7.3 to 5.7.4. - [Release notes](https://github.com/acornjs/acorn/releases) - [Commits](https://github.com/acornjs/acorn/compare/5.7.3...5.7.4) Signed-off-by: dependabot[bot] --- CustomSwitch/package-lock.json | 47 ++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/CustomSwitch/package-lock.json b/CustomSwitch/package-lock.json index bd943f5..c72abec 100644 --- a/CustomSwitch/package-lock.json +++ b/CustomSwitch/package-lock.json @@ -1095,9 +1095,9 @@ } }, "acorn": { - "version": "5.7.3", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.3.tgz", - "integrity": "sha512-T/zvzYRfbVojPWahDsE5evJdHb3oJoQfFbsrKM7w5Zcs++Tr257tia3BmMP8XYVjp1S9RZXQMh7gao96BlqZOw==", + "version": "5.7.4", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-5.7.4.tgz", + "integrity": "sha512-1D++VG7BhrtvQpNbBzovKNc1FLGGEE/oGe7b9xJm/RFHMBeUaUGpluV9RLjZa47YFdPcDAenEYuq9pQPcMdLJg==", "dev": true }, "acorn-dynamic-import": { @@ -2782,7 +2782,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -2803,12 +2804,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2823,17 +2826,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -2950,7 +2956,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -2962,6 +2969,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -2976,6 +2984,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -2983,12 +2992,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -3007,6 +3018,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3087,7 +3099,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3099,6 +3112,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -3184,7 +3198,8 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -3220,6 +3235,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -3239,6 +3255,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -3282,12 +3299,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } },