Properties Methods Events Direct Link

# Class Ext.air.DragType

Package: | Ext.air
Defined In: | NativeDD.js
Class: | DragType
Extends: | Object

Drag drop type constants
This class is a singleton and cannot be created directly.

## Public Properties

Property | Defined By
--- | ---
| BITMAP : Object Constant for bitmap data | DragType
| FILES : Object Constant for file list data | DragType
| HTML : Object Constant for html data | DragType
| TEXT : Object Constant for text data | DragType
| URL : Object Constant for url data | DragType
| matchers : Object Collection of matching regular expressions and code snippets. | DragType
| pseudos : Object Collection of "pseudo class" processors. Each processor is passed the current nodeset (array) and the argument (if a... Collection of "pseudo class" processors. Each processor is passed the current nodeset (array) and the argument (if any) supplied in the selector. | DragType

## Public Methods

Method | Defined By
--- | ---
| filter( `Array el`, `String selector`, `Boolean nonMatches` ) : Array Filters an array of elements to only include matches of a simple selector (e.g. div.some-class or span:first-child) Filters an array of elements to only include matches of a simple selector (e.g. div.some-class or span:first-child) Parameters: `el` : Array An array of elements to filter `selector` : String The simple selector to test `nonMatches` : Boolean If true, it returns the elements that DON'T match the selector instead of the ones that match Returns: `Array` | DragType
| is( `String/HTMLElement/Array el`, `String selector` ) : Boolean Returns true if the passed element(s) match the passed simple selector (e.g. div.some-class or span:first-child) Returns true if the passed element(s) match the passed simple selector (e.g. div.some-class or span:first-child) Parameters: `el` : String/HTMLElement/Array An element id, element or array of elements `selector` : String The simple selector to test Returns: `Boolean` | DragType
| operators() : void Collection of operator comparison functions. The default operators are =, !=, ^=, $=, *=, %=, |= and ~=. New operato... Collection of operator comparison functions. The default operators are =, !=, ^=, $=, *=, %=, |= and ~=. New operators can be added as long as the match the format c= where c is any character other than space, > <. Parameters: None. Returns: void | DragType
| select( `String selector`, [`Node root`] ) : Array Selects a group of elements. Selects a group of elements. Parameters: `selector` : String The selector/xpath query (can be a comma separated list of selectors) `root` : Node (optional) The start of the query (defaults to document). Returns: `Array` | DragType
| selectNode( `String selector`, [`Node root`] ) : Element Selects a single element. Selects a single element. Parameters: `selector` : String The selector/xpath query `root` : Node (optional) The start of the query (defaults to document). Returns: `Element` | DragType
| selectNumber( `String selector`, [`Node root`], `Number defaultValue` ) : Number Selects the value of a node, parsing integers and floats. Selects the value of a node, parsing integers and floats. Parameters: `selector` : String The selector/xpath query `root` : Node (optional) The start of the query (defaults to document). `defaultValue` : Number Returns: `Number` | DragType
| selectValue( `String selector`, [`Node root`], `String defaultValue` ) : void Selects the value of a node, optionally replacing null with the defaultValue. Selects the value of a node, optionally replacing null with the defaultValue. Parameters: `selector` : String The selector/xpath query `root` : Node (optional) The start of the query (defaults to document). `defaultValue` : String Returns: void | DragType

## Public Events

This class has no public events.