THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
<sx:datetimepicker id="picker" cssStye="background:red" cssClass="someclass"/> |
...
Publish topic when value changes
Code Block | ||||
---|---|---|---|---|
| ||||
<script type="text/javascript"> dojo.event.topic.subscribe("/value", function(textEntered, date, widget){ alert('value changed'); //textEntered: String enetered in the textbox //date: JavaScript Date object with the value selected //widet: widget that published the topic }); </script> <sx:datetimepicker label="Order Date" valueNotifyTopics="/value"/> |
...
Use other locales. Locales must be specified in the s:x head tag.
Code Block | ||||
---|---|---|---|---|
| ||||
<sx:head extraLocales="en-us,nl-nl,de-de" /> <sx:datetimepicker label="In German" name="dddp7" value="%{'2006-06-28'}" language="de-de" /> <sx:datetimepicker label="In Dutch" name="dddp8" value="%{'2006-06-28'}" language="nl-nl" /> |