Helper/Bootstrap/Addon/Popover.php
public function setPopover(string $title, string $txt, $placement = null, $html = null, $container = null, $delay = null)
    {
        $this->popover = ['title' => $title, 'data-content' => $txt];
        $this->popoverOptions['title'] = $title;
        $placement !== null && Checkers::checkPlacement($placement);
        $placement !== null && $this->popoverOptions['data-placement'] = $placement;
        $html      !== null && $this->popoverOptions['data-html'] = (int) (bool) $html;
        $container !== null && $this->popoverOptions['data-container'] = (string) $container;
        $delay     !== null && $this->popoverOptions['data-delay'] = (int) $delay;
        return $this;
    }
public function setPopover(string $title, string $txt, $placement = null, $html = null, $container = null, $delay = null)
    {
        $this->popover = ['title' => $title, 'data-content' => $txt];
        $this->popoverOptions['title'] = $title;
        $placement !== null && Checkers::checkPlacement($placement);
        $placement !== null && $this->popoverOptions['data-placement'] = $placement;
        $html      !== null && $this->popoverOptions['data-html'] = (int) (bool) $html;
        $container !== null && $this->popoverOptions['data-container'] = (string) $container;
        $delay     !== null && $this->popoverOptions['data-delay'] = (int) $delay;
        return $this;
    }
public function setPopover ( string $ title , string $ txt , $ placement = null , $ html = null , $ container = null , $ delay = null ) { $ this -> popover = [ 'title' => $ title , 'data-content' => $ txt ] ; $ this -> popoverOptions [ 'title' ] = $ title ; $ placement !== null && Checkers :: checkPlacement ( $ placement ) ; $ placement !== null && $ this -> popoverOptions [ 'data-placement' ] = $ placement ; $ html !== null && $ this -> popoverOptions [ 'data-html' ] = ( int ) ( bool ) $ html ; $ container !== null && $ this -> popoverOptions [ 'data-container' ] = ( string ) $ container ; $ delay !== null && $ this -> popoverOptions [ 'data-delay' ] = ( int ) $ delay ; return $ this ; }
Help bubble with title
@param string $title
@param string $txt
@param string $placement top, bottom, left, right
@param bool $html to put HTML instead of text
@param string $container 'body' or name of the tag to attache to the popover
@param int $delay délai de l'animation (ms)
@return $this
Help bubble with title