span.comp
The Text Span widget is used for grouping elements in a document without being itself visually changed.
It also provides a way to add a hook to a part of a text or a part of a document.
Hooked text span elements can be used for adding styles or other additional text features.
Input Parameters:
Parameters
Parameter Name |
Description |
Default Value |
id |
Select ID. |
Undefined. |
size |
Parameter deprecated - has been replaced by $ width |
Undefined. |
width |
Width in pixels of the select field. |
Undefined. |
bgcolor |
Value of the background-color. |
Undefined. |
disp_template |
eval function to define the description. |
Undefined. |
description |
Tooltip. |
Empty string. |
value |
view database table field and the value to render |
Empty string. |
empty_descr |
The empty option displays empty_descr. |
Empty string. |
Examples
Demo
The demo demonstration is available
here.
Span
<br>
<& /input/span.comp,
id =>'Span1',
description=>'Test oggetto span',
style=>'background-color:yellow; width:400;',
value => 'BINGO' &>
<br>
<script>
function InitAll(){
var obj = document.getElementById('Span1');
obj.set_value('BENE, FUNZIONA!!!');
}
window.setTimeout(InitAll,1);
</script>