Zebra API Doc

zebra.ui.ViewPan Class

Extends zebra.ui.Panel

UI component to keep and render the given "zebra.ui.View" class instance. The target view defines the component preferred size and the component view.

Constructor

zebra.ui.ViewPan

()

Item Index

Attributes

Methods

calcPreferredSize

(
  • t
)
Object

Override the parent method to calculate preferred size basing on a target view.

Parameters:


Return: Object

return a target view preferred size if it is defined. The returned structure is the following: { width: {Integer}, height:{Integer} }

setView

(
  • v
)
chainable

Set the target view to be wrapped with the UI component

Parameters:

  • v zebra.ui.View | Function

    a view or a rendering view "paint(g,x,y,w,h,c)" function

Attributes

view

zebra.ui.View readonly

Reference to a view that the component visualize

Default: null