pilotcz/lazy-tracy

Lazy loaded tracy toolbar

Installs: 1 226

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:HTML

1.0.2 2019-06-04 08:51 UTC

This package is auto-updated.

Last update: 2024-05-06 22:17:06 UTC


README

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>');
    }
}