Set Button Title.

@param $title

@return $this
@throws CouldNotCreateButton
172095
public function title($title)
    {
        if ($this->isNotSetOrEmpty($title)) {
            throw CouldNotCreateButton::titleNotProvided();
        } elseif (mb_strlen($title) > 20) {
            throw CouldNotCreateButton::titleLimitExceeded($title);
        }

        $this->payload['title'] = $title;

        return $this;
    }
695893
public function setTitle(string $title): self
    {
        if (strlen($title) > 31) {
            $title = mb_substr($title, 0, 31);
        }

        $this->title = $title;

        return $this;
    }
785619
public function createNode($title = null)
	{
		$node = new Node\ArrayNode();
		$node->setNodeTitle($title);
		$this->add($node);
		
		return $node;
	}
241652
public function setTitle(string $title)
    {
        /** @var  \Illuminate\Translation\Translator  $translator */
        $translator  = trans();
        $this->title = $translator->has($title)
            ? $translator->get($title)
            : $title;

        return $this;
    }
726898
public static function save($title = null)
    {
        $toolbar = Toolbar::getInstance(self::$_toolbar);
        $title   = (empty($title)) ? __d('core', 'Save') : $title;

        $toolbar->appendButton('Core.action', $title, self::ACTION_SAVE, [
            'icon'      => 'check',
            'class'     => 'jsFormButton',
            'iconClass' => 'ckTextGreen',
            'button'    => 'grey lighten-3',
        ]);
    }
70507
public function btnReset($title = '', $options = [])
    {
        $title = empty($title) ? __('Reset') : $title;
        $options = array_merge([
            'class' => 'btn btn-success',
            'type' => 'reset',
        ], $options);
        return parent::button($title, $options);
    }
184410
public function title(string $title): Command
    {
        $size = strlen($title);
        $spaces = str_repeat(' ', $size);

        $this->output->newLine();
        $this->output->writeln("<bg=blue;fg=white>$spaces$spaces$spaces</>");
        $this->output->writeln("<bg=blue;fg=white>$spaces$title$spaces</>");
        $this->output->writeln("<bg=blue;fg=white>$spaces$spaces$spaces</>");
        $this->output->newLine();

        return $this;
    }
1221941
public function withTitle($title)
    {
        Assertion::string($title);
        Assertion::notBlank($title);

        $instance = clone $this;

        $instance->title = $title;

        return $instance;
    }
683550
public function button($title, array $options = [])
    {
        $options = $this->addClass($options, $this->_class(__FUNCTION__));
        $options = $this->_getBtnClass($options);
        $options = $this->_getToolTipAttr($options);

        list($title, $options) = $this->_createIcon($this->Html, $title, $options);

        return parent::button($title, $options);
    }
1205175
public function setTitle($title)
    {
        $this->title = $title;

        $this->getViewService()->share('title', $this->getTitle());
    }
1312543
public function setTitle($title)
    {
        if (gettype($title) === 'string') {
            $this->title = $title;
        } else {
            $msg = "Title must be a string, '" . gettype($title) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }
351508
protected function _setTitleAttr($title, array $options = [])
    {
        if (!Arr::key('title', $options)) {
            $options['title'] = strip_tags($title);
        }

        return $options;
    }
3417
public function title($title = null)
    {
        if ($title === null) {
            return $this->_title;
        }
        $this->_title = $title;

        return $this;
    }
89656
public static function apply($title = null)
    {
        $toolbar = Toolbar::getInstance(self::$_toolbar);
        $title   = (empty($title)) ? __d('core', 'Apply') : $title;

        $toolbar->appendButton('Core.action', $title, self::ACTION_APPLY, [
            'class'  => 'jsFormButton',
            'icon'   => 'check-square-o',
            'button' => 'green lighten-2',
        ]);
    }
694872
public function setTitle($title): Hybrid
    {
        self::validateSetLength('title', $title);
        $this->data['title'] = $title;

        return $this;
    }
567174
protected function setPageTitle($title) {

        $this->pageTitle = $title;

        $args = array('class' => 'title');
        $titleTag = \MUtil_Html::create('h3', $title, $args);

        $this->html->append($titleTag);
    }
509672
public function useDefaultPanel($title = '')
    {

        /** @var $panel \FrenchFrogs\Panel\Panel\Panel */
        $panel = configurator()->get('panel.class');
        $panel = new $panel;
        $panel->setTitle(strval($title));

        return $this->setPanel($panel);
    }