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.
description Tooltip. Empty string.
value view database table field and the value to render Empty string.
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.
empty_descr The empty option displays empty_descr. Empty string.

Examples

Demo

span.png

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>
Topic revision: r8 - 21 Sep 2016, GuidoBrugnara
This site is powered by FoswikiCopyright (©) Leader.IT - Italy P.I. IT01434390223 Privacy policy & use of cookies