Package com.vaadin.componentfactory
Class Breadcrumbs
java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.littemplate.LitTemplate
com.vaadin.componentfactory.Breadcrumbs
- All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier,com.vaadin.flow.component.DetachNotifier,com.vaadin.flow.component.HasComponents,com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasEnabled,com.vaadin.flow.component.HasOrderedComponents,com.vaadin.flow.component.HasSize,com.vaadin.flow.component.HasStyle,com.vaadin.flow.internal.Template,Serializable
@Tag("vcf-breadcrumbs")
@NpmPackage(value="@vaadin-component-factory/vcf-breadcrumb",
version="3.0.0")
@JsModule("@vaadin-component-factory/vcf-breadcrumb/dist/src/vcf-breadcrumbs.js")
public class Breadcrumbs
extends com.vaadin.flow.component.littemplate.LitTemplate
implements com.vaadin.flow.component.HasOrderedComponents, com.vaadin.flow.component.HasSize
Server-side component for the
vcf-breadcrumbs element. An easy way to display
breadcrumb on web pages. This component is container for Breadcrumb components- Author:
- Vaadin Ltd
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBreadcrumbs(Breadcrumb... breadcrumbs) Creates instance of Breadcrumbs as container for breadcrumbs which are passed as param -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether mobile mode has been forced programmatically.voidsetForceMobileMode(boolean forceMobileMode) Sets whether the component should force mobile mode, regardless of the current screen size or media query state.Methods 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.HasComponents
add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAllMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasOrderedComponents
getChildren, getComponentAt, getComponentCount, indexOf, replaceMethods inherited from interface com.vaadin.flow.component.HasSize
getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
Breadcrumbs
Creates instance of Breadcrumbs as container for breadcrumbs which are passed as param- Parameters:
breadcrumbs- brick components of breadcrumbs component
-
-
Method Details
-
setForceMobileMode
public void setForceMobileMode(boolean forceMobileMode) Sets whether the component should force mobile mode, regardless of the current screen size or media query state.This allows programmatic control over mobile styling, for example when the application uses its own logic to detect mobile devices.
- Parameters:
forceMobileMode-trueto enable mobile mode manually;falseto disable it
-
isForceMobileMode
public boolean isForceMobileMode()Returns whether mobile mode has been forced programmatically.- Returns:
trueif mobile mode is enabled,falseotherwise
-