dek-cz/title-control
最新稳定版本:1.1.1
Composer 安装命令:
composer require dek-cz/title-control
包简介
Nette control for managing title in HTML header.
README 文档
README
Installation
Via Composer:
$ composer require dek-cz/title-control
Usage
First register the control factory in your config:
services: - implement: Dekcz\TitleControl\ITitleControlFactory
Use the control factory in your presenter:
protected function createComponentTitle(): Dekcz\TitleControl\TitleControl { $control = $this->titleControlFactory->create(); $control->setTitle('My title'); return $control; }
And render it in your Latte template:
<html> <head> {control title} </head> <body> ... </body> </html>
We can also use multi title with a separator. Default separator is: ' | '
$control->addItem('One')->addItem('Two'); // 'One | Two'
Change the separator:
$control->setSeparator(' ~ ');
We can also use nette translator
统计信息
- 总下载量: 6.99k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-03-04