Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Container
        Panel
          QueryBuilder

Class CQ.search.QueryBuilder

Package:CQ.search
Class:QueryBuilder
Extends:CQ.Ext.Panel
Clientlib:cq.search
xtype:querybuilder
The CQ.search.QueryBuilder class provides a form panel to build search queries.

var qb = new CQ.search.QueryBuilder({
    "form": new CQ.Ext.form.BasicForm("qb-form", {
        "method": "GET",
        "url": "/bin/querybuilder.json"
    },
    "renderFieldsTo": "qb-form"
});
qb.setTypes(["dam:Asset"]);
qb.setPath(["/content/dam/geometrixx/travel", "/content/dam/geometrixx/documents"]);

CQ.search.Util.setQueryBuilder(qb);
Use CQ.search.Util.setQueryBuilder in order to easily access the Query Builder at other places using CQ.search.Util.getQueryBuilder to e.g. submit it.

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
  form : CQ.Ext.form.BasicForm
The form of the Query Builder.
QueryBuilder
  pageX : Number
The page level x coordinate for this component if contained within a positioning container.
BoxComponent
  pageY : Number
The page level y coordinate for this component if contained within a positioning container.
BoxComponent
  x : Number
The local x (left) coordinate for this component if contained within a positioning container.
BoxComponent
  y : Number
The local y (top) coordinate for this component if contained within a positioning container.
BoxComponent

Public Properties

Property Defined By
  buttons : Array
This Panel's Array of buttons as created from the buttons config property. Read only.
Panel
  bwrap : CQ.Ext.Element
The Panel's bwrap Element used to contain other Panel elements (tbar, body, bbar, footer). See bodyCfg. Read-only.
Panel
  collapsed : Boolean
True if this panel is collapsed. Read-only.
Panel
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  header : CQ.Ext.Element
The Panel's header Element. Read-only.

This Element is used to house the title and tools


Note: see the Note for el also.

Panel
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  items : MixedCollection
The collection of components in this container as a CQ.Ext.util.MixedCollection
Container
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By