AdminPoly

(esrith/amos/form/AdminPoly)

FilteringSelect of region (ภาค), province (จังหวัด), district (อำเภอ) and subdistrict (ตำบล). They are related to each other and must be filled in hierachical order (region -> province -> district -> subdistrict). This class can utilize customized json files to set different administrative zone entries.

Description
new AdminPoly(params?srcNodeRef?)

Create a new AdminPoly widget.

Description
ampLabel

ampLabel : อำเภอ

provLabel

provLabel : จังหวัด

regLabel

regLabel : ภาค

tamLabel

tamLabel : ตำบล

Type Description
ampControlName String

Name of district control in AdminPoly.

amphoeUrl String

Path to customized district file. If this is applied to entire project, use AdminPoly.prototype.amphoeUrl = "pathfile" at the start page of the web site after require command for AdminPoly.

ampPlaceAt String | Node

Position of district FilteringSelect.

displayedValue String

The values presently display in the controls.

hasAmphoe Boolean

If true, display the FilteringSelect of district.

hasExtent Boolean

If true, display extent when select data. (Must to define when create this control)

hasProvince Boolean

If true, display the FilteringSelect of province.

hasRegion Boolean

If true, display the FilteringSelect of region.

hasTambon Boolean

If true, display the FilteringSelect of subdistrict.

provControlName String

Name of province control in AdminPoly.

provinceUrl String

Path to customized province file. If this is applied to entire project, use AdminPoly.prototype.provinceUrl = "pathfile" at the start page of the web site after require command for AdminPoly.

provPlaceAt String | Node

Position of province FilteringSelect.

regControlName String

Name of region control in AdminPoly.

regionUrl String

Path to customized region file. If this is applied to entire project, use AdminPoly.prototype.regionUrl = "pathfile" at the start page of the web site after require command for AdminPoly.

regPlaceAt String | Node

Position of region FilteringSelect.

required Boolean

If true, input fields must be filled in before form submission.

tambonUrl String

Path to customized subdistrict file. If this is applied to entire project, use AdminPoly.prototype.tambonUrl = "pathfile" at the start page of the web site after require command for AdminPoly.

tamControlName String

Name of subdistrict control in AdminPoly.

tamPlaceAt String | Node

Position of subdistrict FilteringSelect.

value String

Values of all FilteringSelect controls present.

Return type Description
hide() None

Hide an element. An AdminPoly element includes all AdminPoly filtering select boxes. Hidden elements will not be displayed at all.

reset() None

Reset all state and value to default.

show() None

Show an element. An AdminPoly element includes all applicable AdminPoly filtering select boxes.

Constructors Detail
new AdminPoly(params?srcNodeRef?)

Create a new AdminPoly widget.

Parameters:
constants Detail
<String>
ampLabel

ampLabel : อำเภอ

<String>
provLabel

provLabel : จังหวัด

<String>
regLabel

regLabel : ภาค

<String>
tamLabel

tamLabel : ตำบล

Properties Detail
<String>
ampControlName

Name of district control in AdminPoly.

Default value: AMP_CODE

<String>
amphoeUrl

Path to customized district file. If this is applied to entire project, use AdminPoly.prototype.amphoeUrl = "pathfile" at the start page of the web site after require command for AdminPoly.

Default value: dojo /text!./config/amphoe.txt

<String | Node>
ampPlaceAt

Position of district FilteringSelect.

<String>
displayedValue

The values presently display in the controls.

<Boolean>
hasAmphoe

If true, display the FilteringSelect of district.

Default value: true

<Boolean>
hasExtent

If true, display extent when select data. (Must to define when create this control)

Default value: false

<Boolean>
hasProvince

If true, display the FilteringSelect of province.

Default value: true

<Boolean>
hasRegion

If true, display the FilteringSelect of region.

Default value: false

<Boolean>
hasTambon

If true, display the FilteringSelect of subdistrict.

Default value: true

<String>
provControlName

Name of province control in AdminPoly.

Default value: PROV_CODE

<String>
provinceUrl

Path to customized province file. If this is applied to entire project, use AdminPoly.prototype.provinceUrl = "pathfile" at the start page of the web site after require command for AdminPoly.

Default value: dojo /text!./config/province.txt

<String | Node>
provPlaceAt

Position of province FilteringSelect.

<String>
regControlName

Name of region control in AdminPoly.

Default value: REG_CODE

<String>
regionUrl

Path to customized region file. If this is applied to entire project, use AdminPoly.prototype.regionUrl = "pathfile" at the start page of the web site after require command for AdminPoly.

Default value: dojo /text!./config/region.txt

<String | Node>
regPlaceAt

Position of region FilteringSelect.

<Boolean>
required

If true, input fields must be filled in before form submission.

Default value: false

<String>
tambonUrl

Path to customized subdistrict file. If this is applied to entire project, use AdminPoly.prototype.tambonUrl = "pathfile" at the start page of the web site after require command for AdminPoly.

Default value: dojo /text!./config/tambon.txt

<String>
tamControlName

Name of subdistrict control in AdminPoly.

Default value: TAM_CODE

<String | Node>
tamPlaceAt

Position of subdistrict FilteringSelect.

<String>
value

Values of all FilteringSelect controls present.

Methods Detail
hide
()

Hide an element. An AdminPoly element includes all AdminPoly filtering select boxes. Hidden elements will not be displayed at all.

reset
()

Reset all state and value to default.

show
()

Show an element. An AdminPoly element includes all applicable AdminPoly filtering select boxes.