Zebra API Doc

zebra.ui.List.ViewProvider Class

List view provider class. This implementation renders list item using string render. If a list item is an instance of "zebra.ui.View" class than it will be rendered as the view.

Constructor

zebra.ui.List.ViewProvider

(
  • [f]
  • [c]
)

Parameters:

  • [f] String | zebra.ui.Font optional

    a font to render list item text

  • [c] String optional

    a color to render list item text

Item Index

Methods

Attributes

Methods

getView

(
  • target
  • value
  • i
)
zebra.ui.View

Get a view for the given model data element of the specified list component

Parameters:

  • target zebra.ui.List

    a list component

  • value Object

    a data model value

  • i Integer

    an item index


Return: zebra.ui.View

a view to be used to render the given list component item

Attributes

text

zebra.ui.StringRender readonly

Reference to text render that is used to paint a list items