public function tooltip()
    {
        $tooltip = $this->consume('tooltip');

        if (!$tooltip) {
            return $this;
        }

        $this->append('data-toggle', 'tooltip');
        $this->add('title', trim(h(strip_tags($tooltip))));

        if ($this->exists('tooltip-align')) {
            $this->add('data-placement', $this->consume('tooltip-align'));
        }

        return $this;
    }
public function tooltip()
    {
        $tooltip = $this->consume('tooltip');

        if (!$tooltip) {
            return $this;
        }

        $this->append('data-toggle', 'tooltip');
        $this->add('title', trim(h(strip_tags($tooltip))));

        if ($this->exists('tooltip-align')) {
            $this->add('data-placement', $this->consume('tooltip-align'));
        }

        return $this;
    }
public function tooltip ( ) { $ tooltip = $ this -> consume ( 'tooltip' ) ; if ( ! $ tooltip ) { return $ this ; } $ this -> append ( 'data-toggle' , 'tooltip' ) ; $ this -> add ( 'title' , trim ( h ( strip_tags ( $ tooltip ) ) ) ) ; if ( $ this -> exists ( 'tooltip-align' ) ) { $ this -> add ( 'data-placement' , $ this -> consume ( 'tooltip-align' ) ) ; } return $ this ; }
Builds keys for tooltip.

Gets `tooltip` and `tooltip-align` keys and builds `data-tootle` and
`data-placement` keys, as required by Bootstrap tooltips.
@return $this
@see http://getbootstrap.com/docs/4.0/components/tooltips
@uses add()
@uses append()
@uses delete()
@uses exists()
@uses get()
Builds keys for tooltip .