CSS Esthetic : comment span or IText can have the CSSclass label_item

This commit is contained in:
Dany De Bontridder 2017-11-04 11:37:44 +01:00
parent 366c0c28dc
commit d8a9bf6635
5 changed files with 29 additions and 16 deletions

View file

@ -28,7 +28,8 @@ class ISpan extends HtmlInput
public function __construct($p_name="",$p_value="")
{
parent::__construct($p_name,$p_value);
$this->style="display:inline";
$this->style="";
$this->extra="";
}
/*!\brief show the html input of the widget, the span is always readonly */
@ -38,9 +39,10 @@ class ISpan extends HtmlInput
$this->value=($p_value==null)?$this->value:$p_value;
$r=sprintf('<span style="%s" id="%s">%s </span>',
$r=sprintf('<span style="%s" id="%s" %s>%s </span>',
$this->style,
$this->name,
$this->extra,
$this->value
);