To get all data from database when page loaded

initialize : this is called once per instance of the element when the element gets visible on the page.

instance is an object representing the element.

instance = { canvas: div wrapped in a jQuery object publishState: function(name: String, value) - changes the value of a state triggerEvent: function(name: String, callback: function(err)) - triggers an event setHeight: function(height: Number) - sets the height in pixels and recalculates the page data: Object containing custom data - read and write by doing }

For more details you can visit our Image Marker plugin.