gxp.form.AutoCompleteComboBox
¶
-
class
gxp.form.
AutoCompleteComboBox
(config)¶
Creates an autocomplete combo box that issues queries to a WFS typename.
Config Options¶
Configuration properties in addition to those listed for Ext.form.ComboBox.
-
customSortInfo
Object
Providing custom sort info allows sorting of a single field value by multiple parts within that value. For example, a value representing a street address like “1234 Main Street” would make sense to sort first by “Main Street” (case insensitive) and then by “1234” (as an integer). ThecustomSortInfo
object must containmatcher
andparts
properties.The
matcher
value will be used to create a regular expression (withnew RegExp(matcher)
). This regular expression is assumed to have grouping parentheses for each part of the value to be compared.The
parts
value must be an array with the same length as the number of groups, or parts of the value to be compared. Each item in theparts
array may have anorder
property and asortType
property. The optionalorder
value determines precedence for a part (e.g. part with order 0 will be compared before part with order 1). The optionalsortType
value must be a string matching one of theExt.data.SortTypes
methods (e.g. “asFloat”).Example custom sort info to match addresses like “123 Main St” first by street name and then by number:
customSortInfo: { matcher: "^(\\d+)\\s(.*)$", parts: [ {order: 1, sortType: "asInt"}, {order: 0, sortType: "asUCString"} ] }
-
fieldName
String
The name of the field/attribute to search on. The “name” of this form field will also default to fieldName if not provided explicitly.