This API retrieves the control options set by a Profound.js module.
Example
Code Block | ||
---|---|---|
| ||
var controlOptions = pjs.getControlOptions(); var debugMode = controlOptions.debug; if (debugMode) { console.log(pjs.getFieldsArr()[0]); // dump local scope fields to the console } |