v2.0.0
Live Demo →
API Documentation →
⚠️ <vaadin-dropdown-menu>
has been renamed to <vaadin-select>
New Features
Rendering
- By default, the dropdown menu uses the content provided by using the renderer callback function.
- The renderer function provides
root
,dropdownMenu
arguments.
Generate DOM content, append it to theroot
element and control the state
of the host element by accessingdropdownMenu
.
Theme propagation
- the
theme
attribute value set on<vaadin-dropdown-menu>
will be propagated to internal themable components<vaadin-dropdown-menu-text-field>
and<vaadin-dropdown-menu-overlay>
Changes Since v1.1.0:
-
3b6fe19 Update renderer demos, rollback duplicate menu workarounds
-
f23115f Add render method and tests
-
7f2c15d Add test case covering early renderer assignment
-
586fb43 Small fix in demo: rename copy-pasted item
-
c782289 Update mock-item and tests to align with actual behavior
-
1aac8cf Fix selected-changed listener when using renderer
-
e330a1b Propagate theme attribute to internal components
-
3e91312 Check for overlay element in templateOrRendererChanged
-
8b8756d Assign menu and set forwardHostProps with observer
-
35cc7a5 Add test for assigning menu with observer
-
9ab7016 Force rendering the overlay with renderer
-
37c3184 Update overlay dependency
-
95bc09d Replace arrow function in docs
-
cd05f05 Move the renderer docs section upper
-
52f1e66 Align renderer API docs with context-menu [skip ci] (#154)
-
0b2c824 Replace
new
withcreateElement
in demos to avoid errors in P3 [skip ci] (#152) -
e9c17d5 Remove new template or renderer on error
-
bcbab6f Simplify properties setting
-
2ce1b75 Add observer for throwing error using renderer and template
-
24b1310 Add test for throwing error for template and renderer
-
ffc6b60 Update renderer args and bump analysis.json
-
3f6d001 Fix coveralls for PRs
-
a72a6aa Update demo and docs wording, bump analysis.json
-
c4053e3 Update demo not to include ES6, update docs and test wording, bump analysis.json
-
a23cc01 Fix the order of renderer args in test
-
2797c73 Update demo and test wording
-
2f7df7a Add renderer demo
-
ffb3ff8 Add renderer implementation
-
d564e74 Add renderer tests