The qbo.Panel javascript class (from which most qbo.* javascript classes derive) allows you to specify various options as either a direct attribute, or as part of a data-options attribute containing a JSON value. The later is preferred. For example, dropping in a qbo.ReportObject from XSLT can be done like this:
But this is preferred:
With the advent of HTML5, strict browser enforcement will reject the reportid attribute, since reportid is not a standard HTML attribute for <div> tags. However, any attributes that begin with 'data-' will be accepted by HTML 5. More practically, there exist other options ('save' comes to mind) that behave differently as an attribute than as part of data-options.
Only data-options gives you the ability to do non-string-based options. Relevant for save, and for dates and such. For more information on JSON, see: |
Configuration >