htmlselect.comp

The HtmlSelect widget is an upgrade of the basic HTML select button.
It is not buffered in contrast to the Select widget.

Input Parameters:

Common Parameters

Parameters common to select.comp, htmlselect.comp and divselect.comp widgets:

Parameter Name DescriptionSorted ascending Default Value
empty A first option is left empty and has value of empty. Undefined.
edit A link to object that allows editing of the select list. Undefined.
readonly If readonly is enabled and user clicks on the select element the alert pops ups saying 'Il campo non è modificabile'. Undefined.
id Select Component's ID. Undefined.
empty_descr The empty option displays empty_descr. Empty string.
description Tooltip. Empty string.
bgcolor Value of the background-color. Undefined.
value Which <option> to select by default after the list has loaded (only works if the list is static or loaded in the form). Undefined.
width Width in pixels of the select field. 80

HtmlSelect Parameters

Parameter Name Description Default Value
source A .mql filename to be queried for the select options. Undefined.
where The where statement used in the query for the select options. Undefined.
disp_template Evaluation function to define the description (the parameters are available with P [n]).
For example: q{P[0]+' '+P[1]}
Undefined.
icon Icon to use. 'find'
cache_params Not implemented. Undefined.

Examples

See the Adding Select Field example.
See also the Adding HtmlSelect example and the divselect widget.
Topic revision: r6 - 14 Mar 2024, GuidoBrugnara
This site is powered by FoswikiCopyright (©) Leader.IT - Italy P.I. IT01434390223 Privacy policy & use of cookies