Zebra API Doc

zebra.ui.Line Class

Extends zebra.ui.Panel

Line UI component class. Draw series of vertical or horizontal lines of using the given line width and color. Vertical or horizontal line rendering s selected depending on the line component size: if height is greater than width than vertical line will be rendered.

Constructor

zebra.ui.Line

()

Item Index

Methods

Attributes

Methods

setLineColors

(
  • colors
)

Set set of colors to be used to paint the line. Number of colors defines the number of lines to be painted.

Parameters:

  • colors String multiple

    colors

Attributes

lineColors

Array readonly

Line colors

Default: [ "gray" ]

lineWidth

Integer

Line width

Default: 1