addTitle

@param string $name
@param array  $attribs

@return  static
978590
public function addTitle($name, $attribs = [])
    {
        $attribs[static::COL_KEY]['colspan'] = 2;

        $this->addItem($name, false, $attribs);

        return $this;
    }
776851
protected static function mapAttrValues($attribs)
    {
        foreach (static::$trueValueMapping as $key => $value) {
            $attribs[$key] = !empty($attribs[$key]) ? $value : null;
        }

        return $attribs;
    }
15559
public function addText($name , $title = '',$value = '' , $placeholder = '' , $required = false , $msg = '' ,$group = '',$readonly = false){

        $this->addInput('text' , $name , $title ,$value  , $placeholder  , $required  , $msg ,$group , $readonly );
        return $this;
    }
1088292
function title( $contentObjectAttribute, $name = 'name' )
    {
        $matrix = $contentObjectAttribute->content( );

        $value = $matrix->attribute( $name );

        return $value;
    }
635507
public static function selecty($options, $selected = null, $attribs = array())
    {
        $htmls = array();
        $htmls[] = self::select(null, $attribs, false);
        if (Arr::iterable($options)) {
            foreach ($options as $value => $title) {
                $option_attribs = array('value'=>$value);
                if ((string) $selected === (string) $value) {
                    $option_attribs['selected'] = 'selected';
                }
                
                $htmls[] = self::option($title, $option_attribs);
            }
        }
        $htmls[] = '</select>';
        return join("\n", $htmls);
    }
1371036
public function setCustomHtmlAttribs(array $attribs)
        {
            foreach ($attribs as $key => $value) {
                $this->setCustomHtmlAttrib($key, $value);
            }
            return $this;
        }
1018124
public function add($name, $text) {
		$params = array(
			'name' => $name,
			'text' => $text
		);
		return $this->master->call('templates/add', $params);
	}
1216072
public static function create($name, $content = '', $attribs = [], $forcePair = false)
    {
        $paired = $forcePair ?: !in_array(strtolower($name), static::$unpairedElements);

        return parent::create($name, $content, $attribs, $paired);
    }
722182
public function addPre($name, $label = '', $attr = [] )
    {
        $e = new \FrenchFrogs\Form\Element\Pre($name, $label, $attr);
        $this->addElement($e);
        return $e;
    }
241333
public function addContainer($name, $label = '', $attr = [])
    {
        $c = new Column\Container($name, $label, $attr);
        $this->addColumn($c);
        return $c;
    }
101460
static function laraform($title, $name=null) {
        $el = new ElementSubmitTwbs($name, ['value' => $title]);
        $el->addClass('btn');
        return $el;
    }
1121287
public function addTitle($item, $attribs = [])
    {
        if (!$item instanceof DListTitle) {
            $item = new DListTitle($item, $attribs);
        }

        $this->content[] = $item;

        return $this;
    }
154171
public function setLabelAttributes(array $attribs)
    {
        foreach ($attribs as $a => $v) {
            $this->setLabelAttribute($a, $v);
        }
        return $this;
    }
800044
public function addButton($name, $label, $attr = [] )
    {
        $e = new \FrenchFrogs\Form\Element\Button($name, $label, $attr);
        $this->addElement($e);
        return $e;
    }
214970
protected function _addHtmlAttributes(string $html, array $attribs): string {
        $dom = new DOMDocument();
        $fragment = $dom->createDocumentFragment();
        $fragment->appendXML($html);
        $dom->appendChild($fragment);
        foreach ($attribs as $attrib => $value) {
            $dom->firstChild->setAttribute($attrib, $value);
        }
        return $dom->saveXML($dom->firstChild);
    }
561360
public function setTableAttributes($attribs = [], $replace = false)
    {
        if ($replace) {
            $this->attribs = $attribs;
        } else {
            $this->attribs = array_merge($this->attribs, $attribs);
        }

        return $this;
    }
225970
public function document($attrib = [], $content = null)
    {
        if ($content === null) {
            $content = $attrib;
            $attrib = [];
        }
        if (!isset($attrib['version']) || empty($attrib['version'])) {
            $attrib['version'] = $this->version;
        }

        return $this->elem('rss', $attrib, $content);
    }