v4.2.0-alpha1 - Renderer
Live Demo →
API Documentation →
New Features
Item rendering
<vaadin-combo-box>
supports using custom renderer callback function for defining the content of<vaadin-combo-box-item>
.- The renderer function provides
root
,comboBox
,model
arguments when applicable.
Generate DOM content by usingmodel
object properties if needed, append it to theroot
element and control the state of the host element by accessingcomboBox
. Before generating new
content, users are able to check if there is already content inroot
for reusing it.
Changes Since v4.1.0:
-
d0b5c90 Update renderers demos [skip ci]
-
ea0f6b5 Move the renderer docs section upper [skip ci]
-
608bd66 Align renderer API docs with context-menu [skip ci] (#697)
-
9ec9867 Update demos to prefer renderers
-
8fc6aef Throw error and clean template or renderer when are assigned together
-
5560cec Fix clearing of the root for template and renderer function
-
01a9952 Combine renderer, item and index observers, improve test
-
34907ef Update renderer args and bump analysis.json
-
97ca635 Add renderer binding to light version
-
9d9fcc9 Update args order and analysis.json
-
964c6ac Fix renderer tests
-
8640832 Update docs and bump analysis.json
-
45dab4f Remove renderer declaration from light version
-
8f9f2c0 Update demo wording
-
5179e6a Update demo, docs and bump analysis.json
-
e418aff Fix docs
-
5c45c6e Fix rendering during scrolling
-
a579c3b Fix and update demo
-
87ec31b Update docs, owner property of renderer function and add test for root, model and owner
-
a9e71b7 Update docs and wording, bump analysis.json
-
a792222 Add item renderer demo
-
9baf4b2 Add item renderer implementation
-
6f6f2a8 Add renderer test