cgxp.plugins.FullTextSearch

ptype
cgxp_fulltextsearch
class cgxp.plugins.FullTextSearch(config)

Plugin to add a text search field.

Example Use

Sample code showing how to add a FullTextSearch plugin to a gxp.Viewer:

new gxp.Viewer({
    ...
    tools: [{
        ptype: "cgxp_fulltextsearch",
        url: "${request.route_url('fulltextsearch')}",
        actionTarget: "center.tbar"
    }]
    ...
});

Config Options

Configuration properties.

actionConfig

Object Optional configuration of the ComboBox.

colorpickerTooltipText

String Text to display as a tooltip on the color picker (i18n).

colorpickerWidth

Number The width of the color picker. Default is 20

coordsRecenteringStyle

Object Style configuration used when recentering on coordinates.

coordsRecenterZoom

Number Zoom level to use when recentering on coordinates (optional).

layerTreeId

String Id of the layertree tool. If set, automaticaly load the corresponding layerGroup in the layer tree.

pointRecenterZoom

Number Zoom level to use when recentering on point items (optional).

showCenter

Boolean f true, center point is materialized when centering on coordinates default is false).

url

String URL of the text search service. Typically set to "${request.route_url('fulltextsearch')}".

useColorPicker

Boolean If true, append a color picker next to the text search widget allowing to choose the color of the highlighted feature. Default is false.

vectorLayerConfig

Object Optional configuration of the vector layer.

widgetOptions

Object Additional FullTextSearch widget options. See CGXP.FullTextSearch.

Table Of Contents

Previous topic

cgxp.plugins.FloorSlider

Next topic

cgxp.plugins.Geonames

This Page

Fork me on GitHub