import QueryResultDialog from 'kqwebmap-project/src_en/control/QueryResultDialog.js'
QueryResultDialog
Extends:
Direct Subclass:
Query result dialog class.
Constructor Summary
Public Constructor | ||
public |
Constructor |
Method Summary
Public Methods | ||
public |
clearFlickerLayer(): Null clear flicker layer |
|
public |
close(): Null close dialog |
|
public |
flickerLayer(layer: Object): Null flicker layer |
|
public |
Open a dialog |
|
public |
resetChartFields(): Null reset statistics field(the statistical field of the overlay_analysis.xml configuration file) |
|
public |
setChartFields(chartFields: Array): Null set statistics field |
|
public |
setUseDefaultFlicker(flag: Bool): Null whether use the default flicker behavior |
Public Constructors
Public Methods
public flickerLayer(layer: Object): Null source
flicker layer
Params:
Name | Type | Attribute | Description |
layer | Object | layer to flicker |
Return:
Null |
public open(dataSource: Array, options: Object): Null source
Open a dialog
Params:
Name | Type | Attribute | Description |
dataSource | Array | data source overlay analysis |
|
dataSource.index.label | String | provides the text name of the tab(default layer name) |
|
dataSource.index.toolTip | String | provides detailes description of label |
|
dataSource.index.fields | Array | the fields to which the columns is bound. |
|
dataSource.index..titles | Array | the text that is displayed in the column header cell |
|
dataSource.index..records | Array | the data source of the widget which is used render table rows |
|
options | Object | dialog's options |
|
options.width | Number | specifies width of the dialog |
|
options.height | Number | specifies height of the dialog |
|
options.position | Object | a collection of one or two members, which define the initial Window's top and/or left position on the page |
|
options.position.top | Number | specifies the initial top position of the dialog |
|
options.position.left | Number | specifies the initial left position of the dialog |
Return:
Null |
public resetChartFields(): Null source
reset statistics field(the statistical field of the overlay_analysis.xml configuration file)
Return:
Null |
public setChartFields(chartFields: Array): Null source
set statistics field
Params:
Name | Type | Attribute | Description |
chartFields | Array | statistics field(e.g: ['DLMC', 'YSDM'])。 |
Return:
Null |
public setUseDefaultFlicker(flag: Bool): Null source
whether use the default flicker behavior
Params:
Name | Type | Attribute | Description |
flag | Bool | if true,open the dialog and select one record will flicker the record, close the dialog will clear flicker. if false, not have flicker behavior. |
Return:
Null |