|
1 | | -<?xml version="1.0" encoding="utf-8"?> |
2 | | -<widget id="com.mendix.widget.native.colorpicker.ColorPicker" supportedPlatform="Native" needsEntityContext="true" |
3 | | - offlineCapable="true" pluginWidget="true" xmlns="http://www.mendix.com/widget/1.0/" |
4 | | - xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
5 | | - xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../../../node_modules/mendix/custom_widget.xsd"> |
| 1 | +<?xml version="1.0" encoding="utf-8" ?> |
| 2 | +<widget id="com.mendix.widget.native.colorpicker.ColorPicker" supportedPlatform="Native" needsEntityContext="true" offlineCapable="true" pluginWidget="true" xmlns="http://www.mendix.com/widget/1.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../../../node_modules/mendix/custom_widget.xsd"> |
6 | 3 | <name>Color picker</name> |
7 | 4 | <description>Pick a color from a circular color input</description> |
8 | 5 | <studioProCategory>Input elements</studioProCategory> |
|
14 | 11 | <caption>Color</caption> |
15 | 12 | <description>Attribute containing a valid color like #d0d0d0, red, rgba(255,255,255,0).</description> |
16 | 13 | <attributeTypes> |
17 | | - <attributeType name="String"/> |
| 14 | + <attributeType name="String" /> |
18 | 15 | </attributeTypes> |
19 | 16 | </property> |
20 | 17 | <property key="format" type="enumeration" defaultValue="hex"> |
|
47 | 44 | <description>Enables a slider to make the color more transparent or opaque.</description> |
48 | 45 | </property> |
49 | 46 | </propertyGroup> |
| 47 | + <propertyGroup caption="Accessibility"> |
| 48 | + <property key="enableAccessibility" type="boolean" defaultValue="false"> |
| 49 | + <caption>Custom accessibility labels</caption> |
| 50 | + <description>Enables setting custom screen reader labels for the sliders.</description> |
| 51 | + </property> |
| 52 | + <property key="hueLabel" type="textTemplate" required="false"> |
| 53 | + <caption>Hue label</caption> |
| 54 | + <description>Screen reader label of the hue slider. Defaults to "Hue".</description> |
| 55 | + </property> |
| 56 | + <property key="saturationLabel" type="textTemplate" required="false"> |
| 57 | + <caption>Saturation label</caption> |
| 58 | + <description>Screen reader label of the saturation slider. Defaults to "Saturation".</description> |
| 59 | + </property> |
| 60 | + <property key="lightnessLabel" type="textTemplate" required="false"> |
| 61 | + <caption>Brightness label</caption> |
| 62 | + <description>Screen reader label of the brightness slider. Defaults to "Brightness".</description> |
| 63 | + </property> |
| 64 | + <property key="alphaLabel" type="textTemplate" required="false"> |
| 65 | + <caption>Transparency label</caption> |
| 66 | + <description>Screen reader label of the transparency slider. Defaults to "Transparency".</description> |
| 67 | + </property> |
| 68 | + </propertyGroup> |
50 | 69 | <propertyGroup caption="Events"> |
51 | 70 | <property key="onChange" type="action" required="false"> |
52 | 71 | <caption>On change</caption> |
|
55 | 74 | </propertyGroup> |
56 | 75 | <propertyGroup caption="Common"> |
57 | 76 | <systemProperty key="Visibility" /> |
58 | | - <systemProperty key="Name"/> |
| 77 | + <systemProperty key="Name" /> |
59 | 78 | </propertyGroup> |
60 | 79 | </propertyGroup> |
61 | 80 | </properties> |
|
0 commit comments