Configuring the Query Builder
You can configure the Query Builder in a number of ways. For a complete overview check out the Configuration options in the Developer Resources section.
Configure the Query Builder with a separate object
Create a configuration object with the properties you want to override.
Add a configuration option object as the second argument of the JCSDLGui constructor
If need be, you can use more than one instance of the Query Builder on the same page, each with a different configuration. For example, you could embed one Query Builder excluding all of the Facebook targets and another one without the Amazon content target.
You can also use the Query Builder as a jQuery plugin. In this case, the Query Builder is initialized in the following way:
Once the plugin is initialized, you can use it in the following way:
Almost all data displayed inside the Query Builder (the list of targets, available operators, as well as some configuration options for the input fields) is defined inside the JCSDLDefinition object. It is possible to overwrite this object to suit your requirements using the Definition property in the configuration options.
If you are using parameters to modify default attributes of the Query Builder you can use the JCSDL.onLoad function. This function gathers the parameters, makes a proper queue for them, and prevents the Query Builder from calling the same parameter more than once.