Zebra API Doc

zebra.ui.Progress Class

Extends zebra.ui.Panel

Progress bar UI component class. y -= (bundleSize + this.gap [description]

Constructor

zebra.ui.Progress

()

Methods

setBundleSize

(
  • w
  • h
)

Set the progress bar bundle element size

Parameters:

  • w Integer

    a bundle element width

  • h Integer

    a bundle element height

setBundleView

(
  • v
)

Set the progress bar bundle element view

Parameters:

setGap

(
  • g
)

Set the given gap between progress bar bundle elements

Parameters:

  • g Integer

    a gap

setMaxValue

(
  • m
)

Set maximal integer value the progress bar value can rich

Parameters:

  • m Integer

    a maximal value the progress bar value can rich

setOrientation

(
  • o
)

Set the progress bar orientation

Parameters:

  • o Integer | String

    an orientation: zebra.layout.VERTICAL or zebra.layout.HORIZONTAL

setValue

(
  • p
)

Set the current progress bar value

Parameters:

  • p Integer

    a progress bar

Attributes

bundleHeight

Integer readonly

Progress bar bundle height

Default: 6

bundleWidth

Integer readonly

Progress bar bundle width

Default: 6

gap

Integer readonly

Gap between bundle elements

Default: 2

maxValue

Integer readonly

Progress bar maximal value

Default: 20

orientation

Integer readonly

Progress bar orientation

Default: zebra.layout.HORIZONTAL

value

Integer readonly

Progress bar value

Events

fired

Fired when a progress bar value has been updated

   progress.bind(function(src, oldValue) {
       ...
   });

Event Parameters:

  • src zebra.ui.Progress

    a progress bar that triggers the event

  • oldValue Integer

    a progress bar previous value