Skip to content
Draft
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
1 change: 1 addition & 0 deletions packages/generator-widget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The Mendix Pluggable Widget Generator is a scaffolding tool to let you quickly c

- Widget name
- Description
- Prompt
- Organization
- Copyright
- License
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function promptWidgetProperties(mxProjectDir, widgetName) {
type: "input",
name: "copyright",
message: "Add a copyright",
default: "© Mendix Technology BV 2022. All rights reserved.",
default: `© Mendix Technology BV ${new Date().getFullYear()}. All rights reserved.`,
store: true
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name><%- nameCamelCase %></name>
<description><%- description %></description>
<prompt>A simple widget for displaying text</prompt>
<icon/>
<properties>
<propertyGroup caption="General">
<property key="sampleText" type="string" required="false">
<caption>Default value</caption>
<description>Sample text input</description>
<prompt>Enter the text to display in the widget</prompt>
</property>
</propertyGroup>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name><%- nameCamelCase %></name>
<description><%- description %></description>
<prompt>A simple widget for displaying text</prompt>
<icon/>
<properties>
<propertyGroup caption="General">
<property key="sampleText" type="string" required="false">
<caption>Default value</caption>
<description>Sample text input</description>
<prompt>Enter the text to display in the widget</prompt>
</property>
</propertyGroup>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name><%- nameCamelCase %></name>
<description><%- description %></description>
<prompt>A simple widget for displaying text</prompt>
<icon/>
<properties>
<propertyGroup caption="General">
<property key="sampleText" type="string" required="false">
<caption>Default value</caption>
<description>Sample text input</description>
<prompt>Enter the text to display in the widget</prompt>
</property>
</propertyGroup>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name><%- nameCamelCase %></name>
<description><%- description %></description>
<prompt>A simple widget for displaying text</prompt>
<icon/>
<properties>
<propertyGroup caption="General">
<property key="sampleText" type="string" required="false">
<caption>Default value</caption>
<description>Sample text input</description>
<prompt>Enter the text to display in the widget</prompt>
</property>
</propertyGroup>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name><%- nameCamelCase %></name>
<description><%- description %></description>
<prompt>A configurable widget for displaying values as styled badges or labels, optionally bound to an attribute and supporting click actions</prompt>
<icon>
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABp1BMVEUAAABV//9mzP9LtP9Ms/9Jtv9NsvdJsfpLtPpJsfdJsfhJsvhJsvdKsvdJsPhKsPhJsfdJsPhJsfdIsfhJsfdIsPdJsfhJsfhJsPhJsPhIsfhIsPdJsPdKsPdKsfdNsvdOsvdPs/dQs/dRtPdStPdTtPdUtfdWtvdXtvdauPdcuPdeufdeufhguvhiu/hju/hkvPhmvfhnvfhpvvhrv/huwPhvwfhxwfhywvhzwvh4xfl5xfl6xfl8xvl9xvl9x/mByPmCyfmFyvmGyvmJzPmKzPmLzfmNzvqPzvqQz/qT0PqU0PqU0fqX0vqY0vqa0/qe1fqg1vqj1/uk1/un2fup2vut2/uv3Puw3Puw3fuz3vu13/u23/u34Pu44Pu64fu64fy84vy94vy+4/y/4/zD5fzE5fzG5vzH5vzI5/zK6PzL6PzR6/zT7P3U7P3V7f3W7f3Y7v3Z7v3c8P3e8f3f8f3g8f3i8v3l8/3l9P3n9P3r9v7t9/7u9/7v+P7w+P7x+f7y+f70+v71+v74/P75/P76/f77/f78/f78/v79/v7+/v7////6dMsRAAAAG3RSTlMAAwURGxwhMTNic3SEh4iVp7XBzejt7vH5/f6PsMNWAAABsklEQVR4AWIYfGAUjIJRMAqYuYREJKWJAqLCPGwY+jnFpEkBEryMqPr5pEkFgkwo9kuTDviR/S9GhgFSHAgDuKXJAQIIA4TIMkAcEY4i0mQBVrgBkuQZwA43QJo8wIFhQEhEOIBQOutHJozDOP5Crp4e1RhkJ0tKGJFd6oNEdtmJyEIzpaZl5nrRZgaHM/2Pf5/vwXXfyagXgG93bwSAlEolowLMm9w83gibhXH2gKKVdD67gTnWjwCk+VVjMQS4suSnnjMLRVFc9sAHvAX2A9fySaXNBMbEZVUWscaHIMRuqwBgD8hDEbnsRmfjUKJkAQZGCTlO/xWBwIADQLIZBlY441MvfoF1xlFS/4fy+bzXKh4dgNJE7L3eh3tmtuWa+AMcMIY3dgUvZQpGEYmMw2kD7HC+R29UqyoXLaBd0QZxzgXgikLLDSqJTKU5HOcS0MsbA9jPqtwCRvXm2eorBbNIJBw3KJ9O4Yl+AAXdnyaLt7PWN3jRWLvzmAVp94zO5+n41/onfo/UpExxZqI0O7NQr0DhIq9Io7hQpbRYp7hiobRqo6ByFcNWuY6CUTAKRgEAo8X0lBD3V30AAAAASUVORK5CYII=
</icon>
Expand All @@ -13,6 +14,7 @@
<property key="valueAttribute" type="attribute" required="false">
<caption>Value attribute</caption>
<description>The attribute that contains the <%- packageName %> value</description>
<prompt>Attribute used as display value</prompt>
<attributeTypes>
<attributeType name="String"/>
<attributeType name="Enum"/>
Expand All @@ -24,12 +26,14 @@
<property key="<%- packageName %>Value" type="string" required="false">
<caption>Default value</caption>
<description>The <%- packageName %> value shown when no value is provided via the attribute</description>
<prompt>Provide a fallback value when no attribute is configured</prompt>
</property>
</propertyGroup>
<propertyGroup caption="Display">
<property key="bootstrapStyle" type="enumeration" defaultValue="default">
<caption><%- name %> style</caption>
<description>The appearance of the <%- packageName %></description>
<prompt>Select the Bootstrap style variant to control visual appearance</prompt>
<enumerationValues>
<enumerationValue key="default">Default</enumerationValue>
<enumerationValue key="primary">Primary</enumerationValue>
Expand All @@ -43,6 +47,7 @@
<property key="<%- packageName %>Type" type="enumeration" required="true" defaultValue="badge">
<caption>Type</caption>
<description>Render it as either a badge or a color label</description>
<prompt>Choose whether to display as a badge or a label element</prompt>
<enumerationValues>
<enumerationValue key="badge">Badge</enumerationValue>
<enumerationValue key="label">Label</enumerationValue>
Expand All @@ -53,6 +58,7 @@
<property key="onClickAction" type="action" required="false">
<caption>On click action</caption>
<description>Action to trigger when button / label is clicked</description>
<prompt>Define the action to execute when the widget is clicked</prompt>
</property>
</propertyGroup>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name><%- nameCamelCase %></name>
<description><%- description %></description>
<prompt>A configurable widget for displaying values as styled badges or labels, optionally bound to an attribute and supporting click actions</prompt>
<icon>
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABp1BMVEUAAABV//9mzP9LtP9Ms/9Jtv9NsvdJsfpLtPpJsfdJsfhJsvhJsvdKsvdJsPhKsPhJsfdJsPhJsfdIsfhJsfdIsPdJsfhJsfhJsPhJsPhIsfhIsPdJsPdKsPdKsfdNsvdOsvdPs/dQs/dRtPdStPdTtPdUtfdWtvdXtvdauPdcuPdeufdeufhguvhiu/hju/hkvPhmvfhnvfhpvvhrv/huwPhvwfhxwfhywvhzwvh4xfl5xfl6xfl8xvl9xvl9x/mByPmCyfmFyvmGyvmJzPmKzPmLzfmNzvqPzvqQz/qT0PqU0PqU0fqX0vqY0vqa0/qe1fqg1vqj1/uk1/un2fup2vut2/uv3Puw3Puw3fuz3vu13/u23/u34Pu44Pu64fu64fy84vy94vy+4/y/4/zD5fzE5fzG5vzH5vzI5/zK6PzL6PzR6/zT7P3U7P3V7f3W7f3Y7v3Z7v3c8P3e8f3f8f3g8f3i8v3l8/3l9P3n9P3r9v7t9/7u9/7v+P7w+P7x+f7y+f70+v71+v74/P75/P76/f77/f78/f78/v79/v7+/v7////6dMsRAAAAG3RSTlMAAwURGxwhMTNic3SEh4iVp7XBzejt7vH5/f6PsMNWAAABsklEQVR4AWIYfGAUjIJRMAqYuYREJKWJAqLCPGwY+jnFpEkBEryMqPr5pEkFgkwo9kuTDviR/S9GhgFSHAgDuKXJAQIIA4TIMkAcEY4i0mQBVrgBkuQZwA43QJo8wIFhQEhEOIBQOutHJozDOP5Crp4e1RhkJ0tKGJFd6oNEdtmJyEIzpaZl5nrRZgaHM/2Pf5/vwXXfyagXgG93bwSAlEolowLMm9w83gibhXH2gKKVdD67gTnWjwCk+VVjMQS4suSnnjMLRVFc9sAHvAX2A9fySaXNBMbEZVUWscaHIMRuqwBgD8hDEbnsRmfjUKJkAQZGCTlO/xWBwIADQLIZBlY441MvfoF1xlFS/4fy+bzXKh4dgNJE7L3eh3tmtuWa+AMcMIY3dgUvZQpGEYmMw2kD7HC+R29UqyoXLaBd0QZxzgXgikLLDSqJTKU5HOcS0MsbA9jPqtwCRvXm2eorBbNIJBw3KJ9O4Yl+AAXdnyaLt7PWN3jRWLvzmAVp94zO5+n41/onfo/UpExxZqI0O7NQr0DhIq9Io7hQpbRYp7hiobRqo6ByFcNWuY6CUTAKRgEAo8X0lBD3V30AAAAASUVORK5CYII=
</icon>
Expand All @@ -13,6 +14,7 @@
<property key="valueAttribute" type="attribute" required="false">
<caption>Value attribute</caption>
<description>The attribute that contains the <%- packageName %> value</description>
<prompt>Attribute used as display value</prompt>
<attributeTypes>
<attributeType name="String"/>
<attributeType name="Enum"/>
Expand All @@ -24,12 +26,14 @@
<property key="<%- packageName %>Value" type="string" required="false">
<caption>Default value</caption>
<description>The <%- packageName %> value shown when no value is provided via the attribute</description>
<prompt>Provide a fallback value when no attribute is configured</prompt>
</property>
</propertyGroup>
<propertyGroup caption="Display">
<property key="bootstrapStyle" type="enumeration" defaultValue="default">
<caption><%- name %> style</caption>
<description>The appearance of the <%- packageName %></description>
<prompt>Select the Bootstrap style variant to control visual appearance</prompt>
<enumerationValues>
<enumerationValue key="default">Default</enumerationValue>
<enumerationValue key="primary">Primary</enumerationValue>
Expand All @@ -43,6 +47,7 @@
<property key="<%- packageName %>Type" type="enumeration" required="true" defaultValue="badge">
<caption>Type</caption>
<description>Render it as either a badge or a color label</description>
<prompt>Choose whether to display as a badge or a label element</prompt>
<enumerationValues>
<enumerationValue key="badge">Badge</enumerationValue>
<enumerationValue key="label">Label</enumerationValue>
Expand All @@ -53,6 +58,7 @@
<property key="onClickAction" type="action" required="false">
<caption>On click action</caption>
<description>Action to trigger when button / label is clicked</description>
<prompt>Define the action to execute when the widget is clicked</prompt>
</property>
</propertyGroup>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name><%- nameCamelCase %></name>
<description><%- description %></description>
<prompt>A configurable widget for displaying values as styled badges or labels, optionally bound to an attribute and supporting click actions</prompt>
<icon>
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABp1BMVEUAAABV//9mzP9LtP9Ms/9Jtv9NsvdJsfpLtPpJsfdJsfhJsvhJsvdKsvdJsPhKsPhJsfdJsPhJsfdIsfhJsfdIsPdJsfhJsfhJsPhJsPhIsfhIsPdJsPdKsPdKsfdNsvdOsvdPs/dQs/dRtPdStPdTtPdUtfdWtvdXtvdauPdcuPdeufdeufhguvhiu/hju/hkvPhmvfhnvfhpvvhrv/huwPhvwfhxwfhywvhzwvh4xfl5xfl6xfl8xvl9xvl9x/mByPmCyfmFyvmGyvmJzPmKzPmLzfmNzvqPzvqQz/qT0PqU0PqU0fqX0vqY0vqa0/qe1fqg1vqj1/uk1/un2fup2vut2/uv3Puw3Puw3fuz3vu13/u23/u34Pu44Pu64fu64fy84vy94vy+4/y/4/zD5fzE5fzG5vzH5vzI5/zK6PzL6PzR6/zT7P3U7P3V7f3W7f3Y7v3Z7v3c8P3e8f3f8f3g8f3i8v3l8/3l9P3n9P3r9v7t9/7u9/7v+P7w+P7x+f7y+f70+v71+v74/P75/P76/f77/f78/f78/v79/v7+/v7////6dMsRAAAAG3RSTlMAAwURGxwhMTNic3SEh4iVp7XBzejt7vH5/f6PsMNWAAABsklEQVR4AWIYfGAUjIJRMAqYuYREJKWJAqLCPGwY+jnFpEkBEryMqPr5pEkFgkwo9kuTDviR/S9GhgFSHAgDuKXJAQIIA4TIMkAcEY4i0mQBVrgBkuQZwA43QJo8wIFhQEhEOIBQOutHJozDOP5Crp4e1RhkJ0tKGJFd6oNEdtmJyEIzpaZl5nrRZgaHM/2Pf5/vwXXfyagXgG93bwSAlEolowLMm9w83gibhXH2gKKVdD67gTnWjwCk+VVjMQS4suSnnjMLRVFc9sAHvAX2A9fySaXNBMbEZVUWscaHIMRuqwBgD8hDEbnsRmfjUKJkAQZGCTlO/xWBwIADQLIZBlY441MvfoF1xlFS/4fy+bzXKh4dgNJE7L3eh3tmtuWa+AMcMIY3dgUvZQpGEYmMw2kD7HC+R29UqyoXLaBd0QZxzgXgikLLDSqJTKU5HOcS0MsbA9jPqtwCRvXm2eorBbNIJBw3KJ9O4Yl+AAXdnyaLt7PWN3jRWLvzmAVp94zO5+n41/onfo/UpExxZqI0O7NQr0DhIq9Io7hQpbRYp7hiobRqo6ByFcNWuY6CUTAKRgEAo8X0lBD3V30AAAAASUVORK5CYII=
</icon>
Expand All @@ -13,6 +14,7 @@
<property key="valueAttribute" type="attribute" required="false">
<caption>Value attribute</caption>
<description>The attribute that contains the <%- packageName %> value</description>
<prompt>Attribute used as display value</prompt>
<attributeTypes>
<attributeType name="String"/>
<attributeType name="Enum"/>
Expand All @@ -24,12 +26,14 @@
<property key="<%- packageName %>Value" type="string" required="false">
<caption>Default value</caption>
<description>The <%- packageName %> value shown when no value is provided via the attribute</description>
<prompt>Provide a fallback value when no attribute is configured</prompt>
</property>
</propertyGroup>
<propertyGroup caption="Display">
<property key="bootstrapStyle" type="enumeration" defaultValue="default">
<caption><%- name %> style</caption>
<description>The appearance of the <%- packageName %></description>
<prompt>Select the Bootstrap style variant to control visual appearance</prompt>
<enumerationValues>
<enumerationValue key="default">Default</enumerationValue>
<enumerationValue key="primary">Primary</enumerationValue>
Expand All @@ -43,6 +47,7 @@
<property key="<%- packageName %>Type" type="enumeration" required="true" defaultValue="badge">
<caption>Type</caption>
<description>Render it as either a badge or a color label</description>
<prompt>Choose whether to display as a badge or a label element</prompt>
<enumerationValues>
<enumerationValue key="badge">Badge</enumerationValue>
<enumerationValue key="label">Label</enumerationValue>
Expand All @@ -53,6 +58,7 @@
<property key="onClickAction" type="action" required="false">
<caption>On click action</caption>
<description>Action to trigger when button / label is clicked</description>
<prompt>Define the action to execute when the widget is clicked</prompt>
</property>
</propertyGroup>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
xsi:schemaLocation="http://www.mendix.com/widget/1.0/ ../node_modules/mendix/custom_widget.xsd">
<name><%- nameCamelCase %></name>
<description><%- description %></description>
<prompt>A configurable widget for displaying values as styled badges or labels, optionally bound to an attribute and supporting click actions</prompt>
<icon>
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAMAAACdt4HsAAABp1BMVEUAAABV//9mzP9LtP9Ms/9Jtv9NsvdJsfpLtPpJsfdJsfhJsvhJsvdKsvdJsPhKsPhJsfdJsPhJsfdIsfhJsfdIsPdJsfhJsfhJsPhJsPhIsfhIsPdJsPdKsPdKsfdNsvdOsvdPs/dQs/dRtPdStPdTtPdUtfdWtvdXtvdauPdcuPdeufdeufhguvhiu/hju/hkvPhmvfhnvfhpvvhrv/huwPhvwfhxwfhywvhzwvh4xfl5xfl6xfl8xvl9xvl9x/mByPmCyfmFyvmGyvmJzPmKzPmLzfmNzvqPzvqQz/qT0PqU0PqU0fqX0vqY0vqa0/qe1fqg1vqj1/uk1/un2fup2vut2/uv3Puw3Puw3fuz3vu13/u23/u34Pu44Pu64fu64fy84vy94vy+4/y/4/zD5fzE5fzG5vzH5vzI5/zK6PzL6PzR6/zT7P3U7P3V7f3W7f3Y7v3Z7v3c8P3e8f3f8f3g8f3i8v3l8/3l9P3n9P3r9v7t9/7u9/7v+P7w+P7x+f7y+f70+v71+v74/P75/P76/f77/f78/f78/v79/v7+/v7////6dMsRAAAAG3RSTlMAAwURGxwhMTNic3SEh4iVp7XBzejt7vH5/f6PsMNWAAABsklEQVR4AWIYfGAUjIJRMAqYuYREJKWJAqLCPGwY+jnFpEkBEryMqPr5pEkFgkwo9kuTDviR/S9GhgFSHAgDuKXJAQIIA4TIMkAcEY4i0mQBVrgBkuQZwA43QJo8wIFhQEhEOIBQOutHJozDOP5Crp4e1RhkJ0tKGJFd6oNEdtmJyEIzpaZl5nrRZgaHM/2Pf5/vwXXfyagXgG93bwSAlEolowLMm9w83gibhXH2gKKVdD67gTnWjwCk+VVjMQS4suSnnjMLRVFc9sAHvAX2A9fySaXNBMbEZVUWscaHIMRuqwBgD8hDEbnsRmfjUKJkAQZGCTlO/xWBwIADQLIZBlY441MvfoF1xlFS/4fy+bzXKh4dgNJE7L3eh3tmtuWa+AMcMIY3dgUvZQpGEYmMw2kD7HC+R29UqyoXLaBd0QZxzgXgikLLDSqJTKU5HOcS0MsbA9jPqtwCRvXm2eorBbNIJBw3KJ9O4Yl+AAXdnyaLt7PWN3jRWLvzmAVp94zO5+n41/onfo/UpExxZqI0O7NQr0DhIq9Io7hQpbRYp7hiobRqo6ByFcNWuY6CUTAKRgEAo8X0lBD3V30AAAAASUVORK5CYII=
</icon>
Expand All @@ -13,6 +14,7 @@
<property key="valueAttribute" type="attribute" required="false">
<caption>Value attribute</caption>
<description>The attribute that contains the <%- packageName %> value</description>
<prompt>Attribute used as display value</prompt>
<attributeTypes>
<attributeType name="String"/>
<attributeType name="Enum"/>
Expand All @@ -24,12 +26,14 @@
<property key="<%- packageName %>Value" type="string" required="false">
<caption>Default value</caption>
<description>The <%- packageName %> value shown when no value is provided via the attribute</description>
<prompt>Provide a fallback value when no attribute is configured</prompt>
</property>
</propertyGroup>
<propertyGroup caption="Display">
<property key="bootstrapStyle" type="enumeration" defaultValue="default">
<caption><%- name %> style</caption>
<description>The appearance of the <%- packageName %></description>
<prompt>Select the Bootstrap style variant to control visual appearance</prompt>
<enumerationValues>
<enumerationValue key="default">Default</enumerationValue>
<enumerationValue key="primary">Primary</enumerationValue>
Expand All @@ -43,6 +47,7 @@
<property key="<%- packageName %>Type" type="enumeration" required="true" defaultValue="badge">
<caption>Type</caption>
<description>Render it as either a badge or a color label</description>
<prompt>Choose whether to display as a badge or a label element</prompt>
<enumerationValues>
<enumerationValue key="badge">Badge</enumerationValue>
<enumerationValue key="label">Label</enumerationValue>
Expand All @@ -53,6 +58,7 @@
<property key="onClickAction" type="action" required="false">
<caption>On click action</caption>
<description>Action to trigger when button / label is clicked</description>
<prompt>Define the action to execute when the widget is clicked</prompt>
</property>
</propertyGroup>
</properties>
Expand Down