-
Notifications
You must be signed in to change notification settings - Fork 73
Expand file tree
/
Copy pathPopupMenu.xml
More file actions
137 lines (137 loc) · 8.36 KB
/
PopupMenu.xml
File metadata and controls
137 lines (137 loc) · 8.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?xml version="1.0" encoding="utf-8" ?>
<widget id="com.mendix.widget.web.popupmenu.PopupMenu" pluginWidget="true" offlineCapable="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">
<name>Pop-up menu</name>
<description>Displays a set of pre-defined items within the Pop-up menu</description>
<studioProCategory>Menus & navigation</studioProCategory>
<studioCategory>Menus</studioCategory>
<helpUrl>https://docs.mendix.com/appstore/widgets/popup-menu</helpUrl>
<properties>
<propertyGroup caption="General">
<propertyGroup caption="General">
<property key="advancedMode" type="boolean" defaultValue="false">
<caption>Enable advanced options</caption>
<description />
</property>
<property key="menuTrigger" type="widgets" required="true">
<caption>The area to open or close the menu.</caption>
<description>Responsible for toggling the Pop-up menu.</description>
</property>
<property key="basicItems" type="object" isList="true" required="false">
<caption>Menu items</caption>
<description>The popup menu items.</description>
<properties>
<property key="itemType" type="enumeration" defaultValue="item">
<caption>Item type</caption>
<category>General</category>
<description />
<enumerationValues>
<enumerationValue key="item">Button</enumerationValue>
<enumerationValue key="divider">Divider</enumerationValue>
</enumerationValues>
</property>
<property key="caption" type="textTemplate" required="false">
<caption>Caption</caption>
<category>General</category>
<description />
</property>
<property key="visible" type="expression" defaultValue="true" required="false">
<caption>Visible</caption>
<category>General</category>
<description />
<returnType type="Boolean" />
</property>
<property key="action" type="action" required="false">
<caption>On click action</caption>
<category>General</category>
<description />
</property>
<property key="styleClass" type="enumeration" defaultValue="defaultStyle">
<caption>Style</caption>
<category>General</category>
<description>An extra class will be added: "popupmenu-basic-item-[style]"</description>
<enumerationValues>
<enumerationValue key="defaultStyle">Default</enumerationValue>
<enumerationValue key="inverseStyle">Inverse</enumerationValue>
<enumerationValue key="primaryStyle">Primary</enumerationValue>
<enumerationValue key="infoStyle">Info</enumerationValue>
<enumerationValue key="successStyle">Success</enumerationValue>
<enumerationValue key="warningStyle">Warning</enumerationValue>
<enumerationValue key="dangerStyle">Danger</enumerationValue>
</enumerationValues>
</property>
</properties>
</property>
<property key="customItems" type="object" isList="true" required="false">
<caption>Menu items</caption>
<description>The popup menu custom items. To make sure the popup closes correctly after a click, do not configure clickable widgets inside the placeholders. Use the action property of this widget.</description>
<properties>
<property key="content" type="widgets">
<caption>Content</caption>
<category>General</category>
<description />
</property>
<property key="visible" type="expression" defaultValue="true" required="false">
<caption>Visible</caption>
<category>General</category>
<description />
<returnType type="Boolean" />
</property>
<property key="action" type="action" required="false">
<caption>On click action</caption>
<category>General</category>
<description />
</property>
</properties>
</property>
<property key="trigger" type="enumeration" defaultValue="onclick">
<caption>Open on</caption>
<description />
<enumerationValues>
<enumerationValue key="onclick">Click</enumerationValue>
<enumerationValue key="onhover">Hover</enumerationValue>
</enumerationValues>
</property>
<property key="clickCloseOn" type="enumeration" defaultValue="onClickAnywhere">
<caption>Close on</caption>
<description />
<enumerationValues>
<enumerationValue key="onClickAnywhere">Click anywhere</enumerationValue>
<enumerationValue key="onClickOutside">Click outside</enumerationValue>
</enumerationValues>
</property>
<property key="hoverCloseOn" type="enumeration" defaultValue="onHoverLeave">
<caption>Close on</caption>
<description />
<enumerationValues>
<enumerationValue key="onClickOutside">Click outside</enumerationValue>
<enumerationValue key="onHoverLeave">Hover leave</enumerationValue>
</enumerationValues>
</property>
<property key="position" type="enumeration" defaultValue="bottom">
<caption>Menu position</caption>
<description>The location of the menu relative to the click area.</description>
<enumerationValues>
<enumerationValue key="left">Left</enumerationValue>
<enumerationValue key="right">Right</enumerationValue>
<enumerationValue key="top">Top</enumerationValue>
<enumerationValue key="bottom">Bottom</enumerationValue>
</enumerationValues>
</property>
<property key="clippingStrategy" type="enumeration" defaultValue="absolute">
<caption>Clipping strategy</caption>
<description>'Absolute' positions the floating element relative to its nearest positioned ancestor, while 'Fixed' breaks it out of any clipping ancestor.</description>
<enumerationValues>
<enumerationValue key="absolute">Absolute</enumerationValue>
<enumerationValue key="fixed">Fixed</enumerationValue>
</enumerationValues>
</property>
</propertyGroup>
<propertyGroup caption="Development">
<property key="menuToggle" type="boolean" defaultValue="false">
<caption>Show preview</caption>
<description>Use this to see a preview of the menu items while developing.</description>
</property>
</propertyGroup>
</propertyGroup>
</properties>
</widget>