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 } } }, diff --git a/README.md b/README.md index 884f98d..a7f4e84 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # 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 +40,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||