common.render

Renders the widget into the specified HTML element
render(box)
box string or object, HTML element or selector where to render the widget

Description

The box parameter can be either a DOM element or a CSS selector string. If it's a string, it will be converted to a DOM element using query selector. This method creates the widget's HTML structure, initializes event handlers, and sets up any necessary observers. It also triggers the 'render' event before and after rendering. The method returns the time taken to render the widget in milliseconds.

User Comments

comments powered by Disqus