Directory

← Back

Iron Collapse Button

A wrapper for Iron Collapse Button

Author

Rating

Popularity

<100

See https://www.webcomponents.org/element/jifalops/iron-collapse-button. An iron-collapse with a trigger section and optional expand/collapse icons.

Note that this functionality is now covered by com.vaadin.flow.component.details.Details.

Sample code

@Route("")
public class DemoView extends Div {

    public DemoView() {
        add(new Label("This is the demo:"));
        IronCollapseButton b = new IronCollapseButton("Click me");
        b.addContent(new Span("Lorem ipsum dolor sit ..."));
        add(b);
    }
}

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Added 'flex' feature to display icon on right side of div. Removed non-working feature triggerBelowContent

Released
2019-02-24
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 10+
Browser
Browser Independent

Iron Collapse Button - Vaadin Add-on Directory

A wrapper for Iron Collapse Button Iron Collapse Button - Vaadin Add-on Directory
See https://www.webcomponents.org/element/jifalops/iron-collapse-button. An iron-collapse with a trigger section and optional expand/collapse icons. Note that this functionality is now covered by com.vaadin.flow.component.details.Details.
Source Code

Iron Collapse Button version 1.1.2
Ignore previous version

Iron Collapse Button version 1.1.3
Add constructor for initially open panel

Iron Collapse Button version 1.2.1
Added 'flex' feature to display icon on right side of div. Removed non-working feature triggerBelowContent

Online