Class Breadcrumbs

    • Constructor Detail

      • Breadcrumbs

        public Breadcrumbs()
    • Method Detail

      • getButtonSpacing

        public Number getButtonSpacing()
        Returns the default padding for each button and separator in each direction.

        Default: 5

      • setButtonSpacing

        public void setButtonSpacing​(Number buttonSpacing)
        Sets the default padding for each button and separator in each direction.

        Default: 5

      • getButtonTheme

        public <K,​V> Map<K,​V> getButtonTheme()
        Returns the collection of attributes for the buttons. The object takes SVG attributes like fill, stroke, stroke-width, as well as style, a collection of CSS properties for the text.

        Default: null

      • setButtonTheme

        public void setButtonTheme​(String buttonTheme)
        Sets the collection of attributes for the buttons. The object takes SVG attributes like fill, stroke, stroke-width, as well as style, a collection of CSS properties for the text.
      • setButtonTheme

        public <K,​V> void setButtonTheme​(Map<K,​V> buttonTheme)
        Sets the collection of attributes for the buttons. The object takes SVG attributes like fill, stroke, stroke-width, as well as style, a collection of CSS properties for the text.
      • isFloating

        public boolean isFloating()
        When the breadcrumbs are floating, the plot area will not move to make space for it. By default, the chart will not make space for the buttons. This property won't work when positioned in the middle.

        Defaults to false.

      • setFloating

        public void setFloating​(boolean floating)
        When the breadcrumbs are floating, the plot area will not move to make space for it. By default, the chart will not make space for the buttons. This property won't work when positioned in the middle.

        Defaults to false.

      • getFormat

        public String getFormat()
        Returns a format string for the breadcrumbs button. Variables are enclosed by curly brackets. Available values are passed in the declared point options.

        Default: null

      • setFormat

        public void setFormat​(String format)
        Sets a format string for the breadcrumbs button. Variables are enclosed by curly brackets. Available values are passed in the declared point options.
      • getFormatter

        public org.zkoss.json.JavaScriptValue getFormatter()
        Returns the callback JavaScript function to format the breadcrumb text from scratch.

        Default: null

      • setFormatter

        public void setFormatter​(org.zkoss.json.JavaScriptValue formatter)
        Sets the callback JavaScript function to format the breadcrumb text from scratch.

        Default: null

      • getPosition

        public Position getPosition()
        Returns the position for the button row. The breadcrumbs buttons will be aligned properly for the default chart layout (title, subtitle, legend, range selector) for the custom chart layout set the position properties.

        Default: null

      • setPosition

        public void setPosition​(Position position)
        Sets the position for the button row. The breadcrumbs buttons will be aligned properly for the default chart layout (title, subtitle, legend, range selector) for the custom chart layout set the position properties.

        Default: null

      • getRelativeTo

        public String getRelativeTo()
        What box to align the button to. Can be either plotBox or spacingBox.

        Defaults to "plotBox".

      • setRelativeTo

        public void setRelativeTo​(String relativeTo)
        What box to align the button to. Can be either plotBox or spacingBox.

        Defaults to "plotBox".

      • isRtl

        public boolean isRtl()
        Returns whether to reverse the order of buttons. This is common in Arabic and Hebrew.

        Defaults to false.

      • setRtl

        public void setRtl​(boolean rtl)
        Returns whether to reverse the order of buttons. This is common in Arabic and Hebrew.

        Defaults to false.

      • getSeparator

        public Separator getSeparator()
        Returns the options object for Breadcrumbs separator.

        Default: null

      • setSeparator

        public void setSeparator​(Separator separator)
        Sets the options object for Breadcrumbs separator.

        Default: null

      • isShowFullPath

        public boolean isShowFullPath()
        Show full path or only a single button.

        Default: true

      • setShowFullPath

        public void setShowFullPath​(boolean showFullPath)
        Show full path or only a single button.

        Default: true

      • getStyle

        public <K,​V> Map<K,​V> getStyle()
        Returns CSS styles for all breadcrumbs.

        Default: null

      • setStyle

        public void setStyle​(String style)
        Sets CSS styles for all breadcrumbs.

        Default: null

      • setStyle

        public <K,​V> void setStyle​(Map<K,​V> style)
        Sets CSS styles for all breadcrumbs.

        Default: null

      • isUseHTML

        public boolean isUseHTML()
        Returns whether to use HTML to render the breadcrumbs items texts.

        Default: false.

      • setUseHTML

        public void setUseHTML​(boolean useHTML)
        Sets whether to use HTML to render the breadcrumbs items texts.

        Default: false.

      • getZIndex

        public Number getZIndex()
        Returns the z index of the breadcrumbs group.

        Default: 7

      • setZIndex

        public void setZIndex​(Number zIndex)
        Sets the z index of the breadcrumbs group.

        Default: 7