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

    Constructors
    Constructor
    Description
    Breadcrumbs(Breadcrumb... breadcrumbs)
    Creates instance of Breadcrumbs as container for breadcrumbs which are passed as param
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether mobile mode has been forced programmatically.
    void
    setForceMobileMode(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

    getChildren

    Methods 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, setVisible

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add, add, add, addComponentAsFirst, addComponentAtIndex, remove, remove, removeAll

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasOrderedComponents

    getChildren, getComponentAt, getComponentCount, indexOf, replace

    Methods 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, setWidthFull

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • Breadcrumbs

      public Breadcrumbs(Breadcrumb... 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 - true to enable mobile mode manually; false to disable it
    • isForceMobileMode

      public boolean isForceMobileMode()
      Returns whether mobile mode has been forced programmatically.
      Returns:
      true if mobile mode is enabled, false otherwise