Helper/Bootstrap/Nav.php
public function addLink(
            string $label, 
            string $url, 
            bool $active       = false, 
            bool $disabled     = false, 
            string $icon       = null, 
            string $iconColor  = null, 
            string $badge      = null, 
            string $badgeColor = null)
    {
        Checkers::checkUrl($url);
        $this->items[] = [
            'label'    => $label, 
            'url'      => $url, 
            'active'   => $active, 
            'disabled' => $disabled,
            'icon'     => $icon,
            'icolor'   => $iconColor,
            'badge'    => $badge,
            'bcolor'   => $badgeColor
        ];
        return $this;
    }
public function addLink(
            string $label, 
            string $url, 
            bool $active       = false, 
            bool $disabled     = false, 
            string $icon       = null, 
            string $iconColor  = null, 
            string $badge      = null, 
            string $badgeColor = null)
    {
        Checkers::checkUrl($url);
        $this->items[] = [
            'label'    => $label, 
            'url'      => $url, 
            'active'   => $active, 
            'disabled' => $disabled,
            'icon'     => $icon,
            'icolor'   => $iconColor,
            'badge'    => $badge,
            'bcolor'   => $badgeColor
        ];
        return $this;
    }
public function addLink ( string $ label , string $ url , bool $ active = false , bool $ disabled = false , string $ icon = null , string $ iconColor = null , string $ badge = null , string $ badgeColor = null ) { Checkers :: checkUrl ( $ url ) ; $ this -> items [ ] = [ 'label' => $ label , 'url' => $ url , 'active' => $ active , 'disabled' => $ disabled , 'icon' => $ icon , 'icolor' => $ iconColor , 'badge' => $ badge , 'bcolor' => $ badgeColor ] ; return $ this ; }
Add a link element to the nav bar
@param string $label
@param string $url
@param bool $active
@param bool $disabled
@param string $icon
@return $this
Add a link element to the nav bar