|
1 | 1 | <?xml version="1.0" encoding="utf-8" ?> |
2 | | -<widget id="snippetjs.widget.snippetjs" needsEntityContext="true" xmlns="http://www.mendix.com/widget/1.0/"> |
| 2 | +<widget id="snippetjs.widget.snippetjs" needsEntityContext="false" xmlns="http://www.mendix.com/widget/1.0/"> |
3 | 3 | <name>JavaScript Snippet</name> |
4 | | - <description>This widget can be used to insert custom JavaScript to your page, taking object attributes as input parameters.</description> |
| 4 | + <description>This widget can be used to insert custom JavaScript to your page.</description> |
5 | 5 |
|
6 | 6 | <icon>iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABR0lEQVQ4T5XTwUpXQRTH8Y8bE1xEBiK6a9EmddOiREHFXkFLSQvMBxAFfQNdqE+gaFQkPoKQGi7CcBOaYQ8gLlQExUBdyIG5ePmD9+ZZDTNzvvM7vzOnym30YBbPMIjl3Fks3+Az9jCO1disSpdqcYAHCfIRfysAT/EeY7hEI84ywHNspxfi9aIIZa/xElsZoBk7WMCHEkCoG0ILdjPAQ5xiDeFFUWygE48iJwNEwhX2EWqKIkx8gpq8iQ3JxO/o/g8FHYico1AQ9UzjIrXvRwmgHZ9QjYkA9GMqtXAA6yWA8OgrzjGZeVCPQ2wmg4oYcacNkXOSN/Eaf1J77m1iHY7xDa9KSogSu/A4r6AVvzCPkRLAEt4hcnYqv/IXvC0BrKAXL/Czcpjic8xh8Y5hGsYo/qEpOpE3MWqfKRjnPsQc/I7+J7/cAMfJRMJdvEJGAAAAAElFTkSuQmCC</icon> |
7 | 7 |
|
|
19 | 19 | <property key="refresh" type="boolean" defaultValue="true" required="true"> |
20 | 20 | <caption>Enable refresh</caption> |
21 | 21 | <category>Behavior</category> |
22 | | - <description>Run your snippet again if the object is refreshed.</description> |
| 22 | + <description>Run your snippet again if the context is refreshed.</description> |
23 | 23 | </property> |
24 | | - <property key="snippet" type="translatableString" multiline="true" defaultValue="" required="false"> |
| 24 | + <property key="snippet" type="translatableString" multiline="true" required="false"> |
25 | 25 | <caption>JavaScript Snippet</caption> |
26 | 26 | <category>Behavior</category> |
27 | 27 | <description>Use ${your_variable_name} to have the attribute value inserted in this content. Note that this content, except for the replacements, is interpreted as JavaScript.</description> |
28 | 28 | </property> |
29 | | - <property key="notused" type="object" isList="true" required="false"> |
30 | | - <caption>Attributes</caption> |
31 | | - <category>Data source</category> |
32 | | - <description></description> |
33 | | - <properties> |
34 | | - <property key="variablename" type="string" required="false" defaultValue=""> |
35 | | - <caption>Variable name</caption> |
36 | | - <category>Data source</category> |
37 | | - <description>Identifies the attribute value, this name should be used in the 'JavaScript Snippet' property.</description> |
38 | | - </property> |
39 | | - <property key="attrs" type="attribute" allowNonPersistableEntities="true" isPath="optional" pathType="reference"> |
40 | | - <caption>Attribute</caption> |
41 | | - <category>Data source</category> |
42 | | - <description>Value of this attribute will be used to replace ${your_variable_name}, defined in the 'JavaScript Snippet' property.</description> |
43 | | - <attributeTypes> |
44 | | - <attributeType name="AutoNumber"/> |
45 | | - <attributeType name="String" /> |
46 | | - <attributeType name="Enum"/> |
47 | | - <attributeType name="Integer"/> |
48 | | - <attributeType name="Float"/> |
49 | | - <attributeType name="Currency"/> |
50 | | - <attributeType name="Decimal"/> |
51 | | - <attributeType name="Long"/> |
52 | | - <attributeType name="DateTime"/> |
53 | | - </attributeTypes> |
54 | | - </property> |
55 | | - <property key="emptyReplacement" type="translatableString" required="false"> |
56 | | - <caption>Empty value replacement</caption> |
57 | | - <category>Data source</category> |
58 | | - <description>This string will be used when an attribute returns empty. Note that this string is interpreted as JavaScript.</description> |
59 | | - </property> |
60 | | - <property key="datetimeformat" type="enumeration" defaultValue="datetime" > |
61 | | - <caption>Date format</caption> |
62 | | - <category>Behaviour</category> |
63 | | - <description>Shows date and/or time according to locale of user. Relative is time relative to current datetime. (E.g. 3 hours from now)</description> |
64 | | - <enumerationValues> |
65 | | - <enumerationValue key="datetime">Date and time </enumerationValue> |
66 | | - <enumerationValue key="date">Date</enumerationValue> |
67 | | - <enumerationValue key="time">Time</enumerationValue> |
68 | | - <enumerationValue key="relative">Relative</enumerationValue> |
69 | | - </enumerationValues> |
70 | | - </property> |
71 | | - <property key="datePattern" type="translatableString" required="false"> |
72 | | - <caption>Date pattern</caption> |
73 | | - <category>Behaviour</category> |
74 | | - <description>Optional, date pattern to override date part according to dojo/date/locale.</description> |
75 | | - </property> |
76 | | - <property key="timePattern" type="translatableString" required="false"> |
77 | | - <caption>Time pattern</caption> |
78 | | - <category>Behaviour</category> |
79 | | - <description>Optional, time pattern to override time part according to dojo/date/locale.</description> |
80 | | - </property> |
81 | | - <property key="renderHTML" type="boolean" defaultValue="false"> |
82 | | - <caption>Render value as HTML</caption> |
83 | | - <category>Behaviour</category> |
84 | | - <description>Escapes string value when set to false.</description> |
85 | | - </property> |
86 | | - <property key="decimalPrecision" type="integer" defaultValue="0"> |
87 | | - <caption>Decimal precision</caption> |
88 | | - <category>Behaviour</category> |
89 | | - <description>The number of decimals to display.</description> |
90 | | - </property> |
91 | | - <property key="groupDigits" type="boolean" defaultValue="true"> |
92 | | - <caption>Group digits</caption> |
93 | | - <category>Behaviour</category> |
94 | | - <description>Displays separator character in case of a number datatype.</description> |
95 | | - </property> |
96 | | - </properties> |
97 | | - </property> |
98 | | - <property key="useTranslatableStrings" type="boolean" defaultValue="false" required="true"> |
99 | | - <caption>Translatable strings</caption> |
100 | | - <category>Translations</category> |
101 | | - <description>Use translatable strings (instead of internal language pack)</description> |
102 | | - </property> |
103 | | - <property key="translateStringsecond" type="translatableString"> |
104 | | - <caption>String value for second</caption> |
105 | | - <category>Translations</category> |
106 | | - <description></description> |
107 | | - <translations> |
108 | | - <translation lang="en_US">second</translation> |
109 | | - <translation lang="en_GB">second</translation> |
110 | | - <translation lang="nl_NL">seconde</translation> |
111 | | - </translations> |
112 | | - </property> |
113 | | - <property key="translateStringseconds" type="translatableString"> |
114 | | - <caption>String value for seconds</caption> |
115 | | - <category>Translations</category> |
116 | | - <description></description> |
117 | | - <translations> |
118 | | - <translation lang="en_US">seconds</translation> |
119 | | - <translation lang="en_GB">seconds</translation> |
120 | | - <translation lang="nl_NL">seconden</translation> |
121 | | - </translations> |
122 | | - </property> |
123 | | - <property key="translateStringminute" type="translatableString"> |
124 | | - <caption>String value for minute</caption> |
125 | | - <category>Translations</category> |
126 | | - <description></description> |
127 | | - <translations> |
128 | | - <translation lang="en_US">minute</translation> |
129 | | - <translation lang="en_GB">minute</translation> |
130 | | - <translation lang="nl_NL">minuut</translation> |
131 | | - </translations> |
132 | | - </property> |
133 | | - <property key="translateStringminutes" type="translatableString"> |
134 | | - <caption>String value for minutes</caption> |
135 | | - <category>Translations</category> |
136 | | - <description></description> |
137 | | - <translations> |
138 | | - <translation lang="en_US">minutes</translation> |
139 | | - <translation lang="en_GB">minutes</translation> |
140 | | - <translation lang="nl_NL">minuten</translation> |
141 | | - </translations> |
142 | | - </property> |
143 | | - <property key="translateStringhour" type="translatableString"> |
144 | | - <caption>String value for hour</caption> |
145 | | - <category>Translations</category> |
146 | | - <description></description> |
147 | | - <translations> |
148 | | - <translation lang="en_US">hour</translation> |
149 | | - <translation lang="en_GB">hour</translation> |
150 | | - <translation lang="nl_NL">uur</translation> |
151 | | - </translations> |
152 | | - </property> |
153 | | - <property key="translateStringhours" type="translatableString"> |
154 | | - <caption>String value for hours</caption> |
155 | | - <category>Translations</category> |
156 | | - <description></description> |
157 | | - <translations> |
158 | | - <translation lang="en_US">hours</translation> |
159 | | - <translation lang="en_GB">hours</translation> |
160 | | - <translation lang="nl_NL">uur</translation> |
161 | | - </translations> |
162 | | - </property> |
163 | | - <property key="translateStringday" type="translatableString"> |
164 | | - <caption>String value for day</caption> |
165 | | - <category>Translations</category> |
166 | | - <description></description> |
167 | | - <translations> |
168 | | - <translation lang="en_US">day</translation> |
169 | | - <translation lang="en_GB">day</translation> |
170 | | - <translation lang="nl_NL">dag</translation> |
171 | | - </translations> |
172 | | - </property> |
173 | | - <property key="translateStringdays" type="translatableString"> |
174 | | - <caption>String value for days</caption> |
175 | | - <category>Translations</category> |
176 | | - <description></description> |
177 | | - <translations> |
178 | | - <translation lang="en_US">days</translation> |
179 | | - <translation lang="en_GB">days</translation> |
180 | | - <translation lang="nl_NL">dagen</translation> |
181 | | - </translations> |
182 | | - </property> |
183 | | - <property key="translateStringweek" type="translatableString"> |
184 | | - <caption>String value for week</caption> |
185 | | - <category>Translations</category> |
186 | | - <description></description> |
187 | | - <translations> |
188 | | - <translation lang="en_US">week</translation> |
189 | | - <translation lang="en_GB">week</translation> |
190 | | - <translation lang="nl_NL">week</translation> |
191 | | - </translations> |
192 | | - </property> |
193 | | - <property key="translateStringweeks" type="translatableString"> |
194 | | - <caption>String value for weeks</caption> |
195 | | - <category>Translations</category> |
196 | | - <description></description> |
197 | | - <translations> |
198 | | - <translation lang="en_US">weeks</translation> |
199 | | - <translation lang="en_GB">weeks</translation> |
200 | | - <translation lang="nl_NL">weken</translation> |
201 | | - </translations> |
202 | | - </property> |
203 | | - <property key="translateStringmonth" type="translatableString"> |
204 | | - <caption>String value for month</caption> |
205 | | - <category>Translations</category> |
206 | | - <description></description> |
207 | | - <translations> |
208 | | - <translation lang="en_US">month</translation> |
209 | | - <translation lang="en_GB">month</translation> |
210 | | - <translation lang="nl_NL">maand</translation> |
211 | | - </translations> |
212 | | - </property> |
213 | | - <property key="translateStringmonths" type="translatableString"> |
214 | | - <caption>String value for months</caption> |
215 | | - <category>Translations</category> |
216 | | - <description></description> |
217 | | - <translations> |
218 | | - <translation lang="en_US">months</translation> |
219 | | - <translation lang="en_GB">months</translation> |
220 | | - <translation lang="nl_NL">maanden</translation> |
221 | | - </translations> |
222 | | - </property> |
223 | | - <property key="translateStringyear" type="translatableString"> |
224 | | - <caption>String value for year</caption> |
225 | | - <category>Translations</category> |
226 | | - <description></description> |
227 | | - <translations> |
228 | | - <translation lang="en_US">year</translation> |
229 | | - <translation lang="en_GB">year</translation> |
230 | | - <translation lang="nl_NL">jaar</translation> |
231 | | - </translations> |
232 | | - </property> |
233 | | - <property key="translateStringyears" type="translatableString"> |
234 | | - <caption>String value for years</caption> |
235 | | - <category>Translations</category> |
236 | | - <description></description> |
237 | | - <translations> |
238 | | - <translation lang="en_US">years</translation> |
239 | | - <translation lang="en_GB">years</translation> |
240 | | - <translation lang="nl_NL">jaar</translation> |
241 | | - </translations> |
242 | | - </property> |
243 | | - <property key="translateStringtimestampFuture" type="translatableString"> |
244 | | - <caption>String value for from now</caption> |
245 | | - <category>Translations</category> |
246 | | - <description></description> |
247 | | - <translations> |
248 | | - <translation lang="en_US">from now</translation> |
249 | | - <translation lang="en_GB">from now</translation> |
250 | | - <translation lang="nl_NL">vanaf nu</translation> |
251 | | - </translations> |
252 | | - </property> |
253 | | - <property key="translateStringtimestampPast" type="translatableString"> |
254 | | - <caption>String value for ago</caption> |
255 | | - <category>Translations</category> |
256 | | - <description></description> |
257 | | - <translations> |
258 | | - <translation lang="en_US">ago</translation> |
259 | | - <translation lang="en_GB">ago</translation> |
260 | | - <translation lang="nl_NL">geleden</translation> |
261 | | - </translations> |
262 | | - </property> |
263 | 29 | </properties> |
264 | 30 | </widget> |
0 commit comments