Skip to content

pilotcz/lazy-tracy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lazy Tracy

Lazy loaded Tracy panel content via ajax request.

Installation

The recommended way to is via Composer:

composer require pilotcz/lazy-tracy

Usage

use PilotCz\LazyTracy\Panel;

class CustomTracyPanel extends Panel
{
    /**
     * Tracy constructor.
     * @param LinkGenerator $linkGenerator
     * @throws InvalidLinkException
     */
    public function __construct(LinkGenerator $linkGenerator)
    {
        $url = $linkGenerator->link('System:gitPanel');
        
        $this->setUid(self::class);
        $this->setUrl($url);
        $this->setTabText('Tab Text Here');
        $this->setTabIcon('<svg>....</svg>');
    }
}