TbHtml::uneditableFieldControlGroup PHP Method

uneditableFieldControlGroup() public static method

Generates a control group with an uneditable field.
See also: self::controlGroup
public static uneditableFieldControlGroup ( string $value = '', array $htmlOptions = [] ) : string
$value string
$htmlOptions array additional HTML attributes.
return string the generated control group.
    public static function uneditableFieldControlGroup($value = '', $htmlOptions = array())
    {
        return self::controlGroup(self::INPUT_TYPE_UNEDITABLE, '', $value, $htmlOptions);
    }

Usage Example

Exemplo n.º 1
0
 public function testUneditableFieldControlGroup()
 {
     $I = $this->codeGuy;
     $html = TbHtml::uneditableFieldControlGroup('Uneditable text');
     $group = $I->createNode($html, 'div.control-group');
     $controls = $group->filter('div.controls');
     $I->seeNodeChildren($controls, array('span.uneditable-input'));
 }
TbHtml