web-controls.xml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!-- Example: web-controls.xml -->
  2. <?xml version="1.0" encoding="UTF-8"?>
  3. <patterns xmlns="ui-layout-patterns">
  4. <!-- Web/HTML-specific controls -->
  5. <control name="WebBrowser" type="container" category="web-specific">
  6. <constraints>
  7. <allowed-parents>Panel</allowed-parents>
  8. <allowed-children>none</allowed-children>
  9. <container>false</container>
  10. </constraints>
  11. <attributes>
  12. <attribute name="url" type="string" default="about:blank" />
  13. <attribute name="allow-navigation" type="bool" default="true" />
  14. <attribute name="script-errors-suppressed" type="bool" default="false" />
  15. <attribute name="web-browser-shortcuts-enabled" type="bool" default="true" />
  16. </attributes>
  17. <behavior>
  18. <event name="navigating" />
  19. <event name="document-completed" />
  20. <event name="new-window" />
  21. </behavior>
  22. </control>
  23. <control name="DatePicker" type="input" category="web-specific">
  24. <constraints>
  25. <allowed-parents>Panel,FormField</allowed-parents>
  26. <allowed-children>none</allowed-children>
  27. <container>false</container>
  28. </constraints>
  29. <attributes>
  30. <attribute name="selected-date" type="date" default="today" />
  31. <attribute name="min-date" type="date" default="1900-01-01" />
  32. <attribute name="max-date" type="date" default="2100-12-31" />
  33. <attribute name="format" type="string" default="yyyy-mm-dd" />
  34. <attribute name="show-week-numbers" type="bool" default="false" />
  35. </attributes>
  36. <behavior>
  37. <event name="date-changed" />
  38. </behavior>
  39. </control>
  40. </patterns>