|
7 | 7 | <helpUrl>https://docs.mendix.com/appstore/modules/data-grid-2#7-2-drop-down-filter</helpUrl>
|
8 | 8 | <properties>
|
9 | 9 | <propertyGroup caption="General">
|
10 |
| - <propertyGroup caption="General"> |
| 10 | + <propertyGroup caption="Data source"> |
| 11 | + <property key="baseType" type="enumeration" defaultValue="attr"> |
| 12 | + <caption>Filter by</caption> |
| 13 | + <description /> |
| 14 | + <enumerationValues> |
| 15 | + <enumerationValue key="attr">Attribute</enumerationValue> |
| 16 | + <enumerationValue key="ref">Association</enumerationValue> |
| 17 | + </enumerationValues> |
| 18 | + </property> |
| 19 | + <property key="linkedDs" type="datasource" isLinked="true" isList="true"> |
| 20 | + <caption>Datasource to Filter</caption> |
| 21 | + <description /> |
| 22 | + </property> |
| 23 | + |
| 24 | + <!-- start: Attr type --> |
| 25 | + <property key="attrChoice" type="enumeration" defaultValue="auto"> |
| 26 | + <caption>Attribute config</caption> |
| 27 | + <description>"Auto" works only when the widget is placed in a Data grid column.</description> |
| 28 | + <enumerationValues> |
| 29 | + <enumerationValue key="auto">Auto</enumerationValue> |
| 30 | + <enumerationValue key="linked">Custom</enumerationValue> |
| 31 | + </enumerationValues> |
| 32 | + </property> |
| 33 | + <property key="attr" type="attribute" dataSource="linkedDs"> |
| 34 | + <caption>Attribute</caption> |
| 35 | + <description /> |
| 36 | + <attributeTypes> |
| 37 | + <attributeType name="Enum" /> |
| 38 | + <attributeType name="Boolean" /> |
| 39 | + </attributeTypes> |
| 40 | + </property> |
11 | 41 | <property key="auto" type="boolean" defaultValue="true">
|
12 | 42 | <caption>Automatic options</caption>
|
13 | 43 | <description>Show options based on the references or the enumeration values and captions.</description>
|
14 | 44 | </property>
|
15 |
| - <property key="defaultValue" type="expression" required="false"> |
16 |
| - <caption>Default value</caption> |
17 |
| - <description>Empty option caption will be shown by default or if configured default value matches none of the options</description> |
18 |
| - <returnType type="String" /> |
19 |
| - </property> |
20 | 45 | <property key="filterOptions" type="object" isList="true" required="false">
|
21 | 46 | <caption>Options</caption>
|
22 | 47 | <description />
|
|
34 | 59 | </property>
|
35 | 60 | </properties>
|
36 | 61 | </property>
|
| 62 | + <!-- end: Attr type --> |
| 63 | + |
| 64 | + <!-- start: Ref type --> |
| 65 | + <property key="ref" type="association" selectableObjects="refOptions" required="false" dataSource="linkedDs"> |
| 66 | + <caption>Entity</caption> |
| 67 | + <description>Set the entity to enable filtering over association.</description> |
| 68 | + <associationTypes> |
| 69 | + <associationType name="Reference" /> |
| 70 | + <associationType name="ReferenceSet" /> |
| 71 | + </associationTypes> |
| 72 | + </property> |
| 73 | + <property key="refOptions" type="datasource" isList="true" required="false"> |
| 74 | + <caption>Selectable objects</caption> |
| 75 | + <description>The options to show in the Drop-down filter widget.</description> |
| 76 | + </property> |
| 77 | + <property key="fetchOptionsLazy" type="boolean" defaultValue="false"> |
| 78 | + <caption>Use lazy load</caption> |
| 79 | + <description>Lazy loading enables faster parent loading, but with personalization enabled, value restoration will be limited.</description> |
| 80 | + </property> |
| 81 | + <!-- end: Ref type --> |
| 82 | + </propertyGroup> |
| 83 | + <propertyGroup caption="General"> |
| 84 | + <property key="defaultValue" type="expression" required="false"> |
| 85 | + <caption>Default value</caption> |
| 86 | + <description>Empty option caption will be shown by default or if configured default value matches none of the options</description> |
| 87 | + <returnType type="String" /> |
| 88 | + </property> |
37 | 89 | <property key="filterable" type="boolean" defaultValue="false">
|
38 | 90 | <caption>Filterable</caption>
|
39 | 91 | <description />
|
|
0 commit comments