<vcf-lookup-field> -> Lookup Field

States

Theme variants

Custom combo box

Put your own combo box in the field slot when you need more of its API than the lookup field exposes. The lookup field adopts it and leaves its configuration alone, so the label, helper text, item paths and renderer all belong to the combo box. This is how the Vaadin Flow component always uses it. Slot your own vaadin-grid the same way to control the columns in the dialog.

Dialog content renderers

Instead of slotting a grid or a filter, set gridRenderer or filterRenderer. It is called with the lookup field and returns the element to show in the dialog. Slotted content takes precedence, and a renderer that returns nothing keeps the default. As with slotted content, you set the items of a rendered grid, and a rendered filter does its own filtering.