Skip to content

ColorfulOptionSet docs #124

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 91 additions & 10 deletions src/en/developer-guide/applications/controls/colorfuloptionset.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,101 @@
---
Author: Jan Losenicky
Author: Safija Hubljar
---

# Colorful Optionset

## Visual Example

![Colorful Optionset Displayed On Form](/.attachments/applications/Controls/colorfuloptionsetcontrol.png)
This control is changing design of optionset on form.

## Description
![Colorful Optionset Displayed On Form](/.attachments/applications/Controls/colorfuloptionsetcontrolbase.png)

This control is changing design of optionset on form.
## Bindings

## Binding Field
<table>
<thead>
<tr>
<th>Property Name</th>
<th>Description</th>
<th>Of Type</th>
<th>Input</th>
<th>Output</th>
<th>Usage</th>
<th>Required</th>
</tr>
</thead>
<tbody>
<tr>
<td>optionsInput</td>
<td>Binding field for optionset.</td>
<td>
<p><code>OptionSet</code></p>
<td><p style="width: 200px"><code>[
{
"label": "Option 1",
"value": 1,
"color": "#eb1313",
"iconName": null
},
</br>
{
"label": "Option 2",
"value": 2,
"color": null,
"iconName": null
},
</br>
{
"label": "Option 3",
"value": 3,
"color": "#190eeb",
"iconName": null
}
]
</code></p> </td>
<td><p><code>3</code></p></td>
<td><code>bound</code></td>
<td><code>true</code></td>
</tr>
<tr>
<td>optionsIconJSON</td>
<td>Fluent UI icons for options.</td>
<td><code>SingleLine.Text</code></td>
<td>
<p><code>
{
</br>
"key": "CircleFill",
</br>
showOnlyOnHover: false,
</br>
"iconProps": {
"iconName": "CircleFill"
}
</br>
}
</code></p>
<code>undefiend</code>
</td>
<td>N/A</td>
<td><code>input</code></td>
<td><code>false</code></td>
</tr>
<tr>
<td>useColorBackground</td>
<td><p style="width: 180px">Enables the feature to use the color as the background color</p></td>
<td><code>Enum</code></td>
<td> <p> <code>true</code></p>
<p> <code>false</code> </p> </td>
<td>N/A</td>
<td><code>input</code></td>
<td><code>false</code></td>
</tr>
</tbody>
</table>

Control can be binded to any field of type Optionset.
## Changelog

## Inputs
- None
<h2>2024-09-09</h2>
<h3> Changed</h3>
<ul>
<li>Changed PCF to use latest base controls</li>
</ul>