v1.3.0-alpha1 - Custom Item Templates
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>
Changes since v1.2.0
- No Fixes