Class ComponentQuery

Index

Methods

Methods

public static is(component?: IComponent, selector?: string): boolean

[Method] Tests whether the passed Component matches the selector string

Parameters

  • component?: IComponent optional

    Ext.Component The Component to test.

  • selector?: string optional

    String The selector string to test against.

Returns

boolean

Boolean true if the Component matches the selector.

public static query(selector?: string, root?: IContainer): IComponent[]

[Method] Returns an array of matched Components from within the passed root object

Parameters

  • selector?: string optional

    String The selector string to filter returned Components

  • root?: IContainer optional

    Ext.Container The Container within which to perform the query. If omitted, all Components within the document are included in the search. This parameter may also be an array of Components to filter according to the selector.

Returns

IComponent[]

Ext.Component[] The matched Components.