Package com.vaadin.componentfactory
Class Breadcrumb
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.littemplate.LitTemplate
com.vaadin.componentfactory.Breadcrumb
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasStyle,com.vaadin.flow.internal.Template,Serializable
@Tag("vcf-breadcrumb")
@NpmPackage(value="@vaadin-component-factory/vcf-breadcrumb",
version="3.0.0")
@JsModule("@vaadin-component-factory/vcf-breadcrumb/dist/src/vcf-breadcrumbs.js")
public class Breadcrumb
extends com.vaadin.flow.component.littemplate.LitTemplate
Server-side component for the
vcf-breadcrumb element.- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBreadcrumb(String text) Creates instance of Breadcrumb with text set.Breadcrumb(String text, String href) Creates instance of Breadcrumb with text and href defined.Breadcrumb(String text, String href, boolean collapse) Creates an instance of Breadcrumb with text, href and collapse option defined. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets wheter the breadcrumb is collapsible or not.getHref()getText()voidsetCollapse(boolean collapse) Setting collapse "true" to indicate breadcrumb is collapsible This means that the breadcrumb will srink and show its label with ellipsis when the space available is not enough to display it completely.voidSetting href for breadcrumbvoidSetting text of breadcrumbMethods inherited from class com.vaadin.flow.component.littemplate.LitTemplate
getChildrenMethods inherited from class com.vaadin.flow.component.Component
addListener, findAncestor, fireEvent, from, get, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setVisibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
Breadcrumb
Creates instance of Breadcrumb with text set.- Parameters:
text- text of breadcrumb
-
Breadcrumb
Creates instance of Breadcrumb with text and href defined.- Parameters:
text- text of breadcrumbhref- URL or a URL fragment that the breadcrumb points to
-
Breadcrumb
Creates an instance of Breadcrumb with text, href and collapse option defined.- Parameters:
text- text of breadcrumbhref- URL or a URL fragment that the breadcrumb points tocollapse- true to make the breadcrumb collapsible
-
-
Method Details
-
setText
Setting text of breadcrumb- Parameters:
text- text of breadcrumb
-
getText
- Returns:
- of breadcrumb
-
getHref
- Returns:
- href of breadcrumb
-
setHref
Setting href for breadcrumb- Parameters:
href- URL or a URL fragment that the breadcrumb points to
-
getCollapse
public boolean getCollapse()Gets wheter the breadcrumb is collapsible or not.- Returns:
- collapse value of breadcrumb
-
setCollapse
public void setCollapse(boolean collapse) Setting collapse "true" to indicate breadcrumb is collapsible This means that the breadcrumb will srink and show its label with ellipsis when the space available is not enough to display it completely.- Parameters:
collapse- true to make the breadcrumb collapsible
-