Zebra API Doc

zebra.ui.tree.DefViews Class

Default tree editor view provider

Constructor

zebra.ui.tree.DefViews

(
  • [color]
  • [font]
)

Parameters:

  • [color] String optional

    the tree item text color

  • [font] String optional

    the tree item text font

Item Index

Attributes

Methods

getView

(
  • tree
  • item
)
zebra.ui.View

Get a view for the given model item of the UI tree component

Parameters:


Return: zebra.ui.View

a view to visualize the given tree data model element

setColor

(
  • c
)

Set the default view provider text render color

Parameters:

  • c String

    a color

setFont

(
  • f
)

Set the default view provider text render font

Parameters:

Attributes

render

zebra.ui.StringRender readonly

Default tree item render