You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

all-components.html 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="package-mapping" content="my:com.addon.mypackage"/>
  5. </head>
  6. <body>
  7. <v-vertical-layout>
  8. <!-- abstract component -->
  9. <v-button primary-style-name="button" id="foo" style-name="red" caption="Some caption" icon="vaadin://themes/runo/icons/16/ok.png" description="My tooltip" error="Something went wrong" locale="en_US"></v-button>
  10. <!-- absolute layout -->
  11. <v-absolute-layout>
  12. <v-button :top="100px" :left="0px" :z-index=21>OK</v-button>
  13. <v-button :bottom="0px" :right="0px">Cancel</v-button>
  14. </v-absolute-layout>
  15. <!-- vertical layout -->
  16. <v-vertical-layout spacing margin>
  17. <v-button :top>OK</v-button>
  18. <v-table size-full :expand=1 />
  19. </v-vertical-layout>
  20. <!-- horizontal layout -->
  21. <v-horizontal-layout spacing margin>
  22. <v-button :top>OK</v-button>
  23. <v-table size-full :expand=1 />
  24. </v-horizontal-layout>
  25. <!-- form layout -->
  26. <v-form-layout spacing margin>
  27. <v-button :top>OK</v-button>
  28. <v-table size-full :expand=1 />
  29. </v-form-layout>
  30. <!-- css layout -->
  31. <v-css-layout>
  32. <v-button>OK</v-button>
  33. <v-table size-full />
  34. </v-css-layout>
  35. <!-- abstract field -->
  36. <v-text-field buffered validation-visible=false invalid-committed invalid-allowed=false required required-error="This is a required field" conversion-error="Input {0} cannot be parsed" tabindex=3 readonly />
  37. <!-- abstract text field, text field -->
  38. <v-text-field null-representation="" null-setting-allowed maxlength=10 columns=5 input-prompt="Please enter a value" text-change-event-mode="eager" text-change-timeout=2 value="foo" />
  39. <!-- password field -->
  40. <v-password-field null-representation="" null-setting-allowed maxlength=10 columns=5 input-prompt="Please enter a value" text-change-event-mode="eager" text-change-timeout=2 value="foo" />
  41. <!-- text area -->
  42. <v-text-area rows=5 wordwrap=false >test value</v-text-area>
  43. <!-- button -->
  44. <v-button click-shortcut="ctrl-shift-o" disable-on-click tabindex=1 icon="http://vaadin.com/image.png" icon-alt="ok" plain-text>OK</v-button>
  45. <!-- native button -->
  46. <v-button click-shortcut="ctrl-shift-o" disable-on-click tabindex=1 icon="http://vaadin.com/image.png" icon-alt="ok" plain-text>OK</v-button>
  47. <!-- tabsheet -->
  48. <v-tab-sheet tabindex=5>
  49. <tab visible=false closable caption="My first tab">
  50. <v-vertical-layout>
  51. <v-text-field/>
  52. </v-vertical-layout>
  53. </tab>
  54. <tab enabled=false caption="Disabled second tab">
  55. <v-button>In disabled tab - can’t be shown by default</v-button>
  56. </tab>
  57. <tab icon="theme://../runo/icons/16/ok.png" icon-alt="Ok png from Runo - very helpful" description="Click to show a text field" style-name="red" id="uniqueDomId">
  58. <v-text-field input-prompt="Icon only in tab" />
  59. </tab>
  60. </v-tab-sheet>
  61. <!-- accordion -->
  62. <v-accordion tabindex=5>
  63. <tab visible=false closable caption="My first tab">
  64. <v-vertical-layout>
  65. <v-text-field/>
  66. </v-vertical-layout>
  67. </tab>
  68. <tab enabled=false caption="Disabled second tab">
  69. <v-button>In disabled tab - can’t be shown by default</v-button>
  70. </tab>
  71. <tab icon="theme://../runo/icons/16/ok.png" icon-alt="Ok png from Runo - very helpful" description="Click to show a text field" style-name="red" id="uniqueDomId">
  72. <v-text-field input-prompt="Icon only in tab" />
  73. </tab>
  74. </v-accordion>
  75. </v-vertical-layout>
  76. </body>
  77. </html>