Search in sources :

Example 1 with AccordionPanel

use of com.vaadin.flow.component.accordion.AccordionPanel in project linkki by linkki-framework.

the class ProductsSampleDetailsComponent method createPanel.

private AccordionPanel createPanel(String caption, VaadinIcon icon, Object pmo) {
    LinkkiText toolCaption = new LinkkiText(caption, icon);
    AccordionPanel accordionPanel = new AccordionPanel(toolCaption, VaadinUiCreator.createComponent(pmo, new BindingContext()));
    accordionPanel.addThemeVariants(DetailsVariant.REVERSE);
    return accordionPanel;
}
Also used : LinkkiText(org.linkki.core.vaadin.component.base.LinkkiText) BindingContext(org.linkki.core.binding.BindingContext) AccordionPanel(com.vaadin.flow.component.accordion.AccordionPanel)

Aggregations

AccordionPanel (com.vaadin.flow.component.accordion.AccordionPanel)1 BindingContext (org.linkki.core.binding.BindingContext)1 LinkkiText (org.linkki.core.vaadin.component.base.LinkkiText)1