@mendix/pluggable-widgets-tools
Version:
Mendix Pluggable Widgets Tools
142 lines (141 loc) • 6.94 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.selectionInputNative = exports.selectionInput = void 0;
exports.selectionInput = `<widget id="mendix.mywidget.MyWidget" 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/ ../xsd/widget.xsd">
<properties>
<propertyGroup caption="General">
<property key="selectionAll" type="selection" dataSource="requiredDataSource" onChange="onSelectionAllChange">
<caption>Selection (all types)</caption>
<description/>
<selectionTypes>
<selectionType name="None"/>
<selectionType name="Single"/>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="selectionSingleMulti" type="selection" dataSource="requiredDataSource">
<caption>Selection (single or multi)</caption>
<description/>
<selectionTypes>
<selectionType name="Single"/>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="selectionMulti" type="selection" dataSource="requiredDataSource">
<caption>Selection (multi only)</caption>
<description/>
<selectionTypes>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="optionalSelectionAll" type="selection" dataSource="optionalDataSource">
<caption>Optional selection (all)</caption>
<description/>
<selectionTypes>
<selectionType name="None"/>
<selectionType name="Single"/>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="optionalSelectionSingleMulti" type="selection" dataSource="optionalDataSource">
<caption>Optional selection (single or multi)</caption>
<description/>
<selectionTypes>
<selectionType name="Single"/>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="optionalSelectionMulti" type="selection" dataSource="optionalDataSource">
<caption>Optional selection (multi only)</caption>
<description/>
<selectionTypes>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="optionalDataSource" type="datasource" isList="true" required="false">
<caption>Optional data source</caption>
<description />
</property>
<property key="requiredDataSource" type="datasource" isList="true">
<caption>Optional data source</caption>
<description />
</property>
<property key="onSelectionAllChange" type="action">
<caption>On selection change</caption>
<description/>
</property>
</propertyGroup>
</properties>
</widget>`;
exports.selectionInputNative = `
<widget id="mendix.mywidget.MyWidget" needsEntityContext="true" offlineCapable="true" pluginWidget="true" supportedPlatform="Native"
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/ ../xsd/widget.xsd">
<properties>
<propertyGroup caption="General">
<property key="selectionAll" type="selection" dataSource="requiredDataSource" onChange="onSelectionAllChange">
<caption>Selection (all types)</caption>
<description/>
<selectionTypes>
<selectionType name="None"/>
<selectionType name="Single"/>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="selectionSingleMulti" type="selection" dataSource="requiredDataSource">
<caption>Selection (single or multi)</caption>
<description/>
<selectionTypes>
<selectionType name="Single"/>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="selectionMulti" type="selection" dataSource="requiredDataSource">
<caption>Selection (multi only)</caption>
<description/>
<selectionTypes>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="optionalSelectionAll" type="selection" dataSource="optionalDataSource">
<caption>Optional selection (all)</caption>
<description/>
<selectionTypes>
<selectionType name="None"/>
<selectionType name="Single"/>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="optionalSelectionSingleMulti" type="selection" dataSource="optionalDataSource">
<caption>Optional selection (single or multi)</caption>
<description/>
<selectionTypes>
<selectionType name="Single"/>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="optionalSelectionMulti" type="selection" dataSource="optionalDataSource">
<caption>Optional selection (multi only)</caption>
<description/>
<selectionTypes>
<selectionType name="Multi"/>
</selectionTypes>
</property>
<property key="optionalDataSource" type="datasource" isList="true" required="false">
<caption>Optional data source</caption>
<description />
</property>
<property key="requiredDataSource" type="datasource" isList="true">
<caption>Optional data source</caption>
<description />
</property>
<property key="onSelectionAllChange" type="action">
<caption>On selection change</caption>
<description/>
</property>
</propertyGroup>
</properties>
</widget>`;