Zebra API Doc

zebra.ready()

ready

(
  • [f]
)

The method makes sure all variables, structures, elements are loaded and ready to be used. The result of the method execution is calling passed callback functions when the environment is ready. The goal of the method to provide safe place to run your code safely in proper place and at proper time.

   zebra.ready(function() {
       // run code here safely
       ...
   });

Parameters:

  • [f] Fucntion | Array optional

    a function or array of functions to be called safely. If there no one callback method has been passed it causes busy flag will be decremented.