Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MscrmTools committed May 9, 2020
2 parents 4ab02a6 + 404c6bc commit 6539c31
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 14 deletions.
47 changes: 33 additions & 14 deletions CustomSwitch/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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/)
Expand Down Expand Up @@ -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||

0 comments on commit 6539c31

Please sign in to comment.