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. |
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
If true, display extent when select data. (Must to define when create this control)
Default value: false
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
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
If true, input fields must be filled in before form submission.
Default value: false
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
Hide an element. An AdminPoly element includes all AdminPoly filtering select boxes. Hidden elements will not be displayed at all.
Reset all state and value to default.
Show an element. An AdminPoly element includes all applicable AdminPoly filtering select boxes.