Skip to content

v1.3.0-alpha1 - Custom Item Templates

Compare
Choose a tag to compare
@jouni jouni released this 01 Feb 08:55
· 899 commits to master since this release

New Features

Custom Item Templates

You can customize the layout and styles of the items in the dropdown/overlay list by adding a <template> element inside the light DOM of <vaadin-combo-box>.

<!-- Using a simple string array as the items -->
<vaadin-combo-box items='["foo", "bar", "baz"]'>
  <!-- Make the item text bold -->
  <template>
    <b>[[item]]</b>
  </template>
</vaadin-combo-box>

See Live Demos

Changes since v1.2.0

  • No Fixes