org.bklab.flow.components.html.LimitWidthSpan Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-vaadin-flow Show documentation
Show all versions of fluent-vaadin-flow Show documentation
Broderick Labs for fluent vaadin flow. Inherits common Vaadin components.
package org.bklab.flow.components.html;
import com.vaadin.flow.component.html.Span;
import org.bklab.flow.factory.SpanFactory;
public class LimitWidthSpan extends Span {
public LimitWidthSpan(String text, String maxWidth) {
super(text);
getStyle()
.set("width", maxWidth)
.set("text-overflow", "ellipsis")
.set("display", "block")
.set("white-space", "nowrap")
.set("overflow", "hidden");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy