xj/yii2-ratchet-widget yii2-ratchet-widget

yii2-ratchet-widget

https://github.com/twbs/ratchet

composer.json

"require": {
    "xj/yii2-ratchet-widget": "~1.0.0"
}

RegisterAssets

Base

RatchetAsset::register($this);

AndroidTheme

RatchetAndroidAsset::register($this);

IosTheme

RatchetIosAsset::register($this);

Widget TabBar

Icon

echo TabBar::widget([
    'items' => [
        ['label' => '首页', 'url' => ['shop/index'], 'icon' => 'icon icon-home'],
        ['label' => '最新', 'url' => ['shop/hot'], 'icon' => 'icon icon-search'],
        ['label' => '热门', 'url' => ['shop/hot'], 'icon' => 'icon icon-star-filled'],
        ['label' => '没想好', 'url' => ['shop/hot'], 'icon' => 'icon icon-gear'],
        ['label' => '订单', 'url' => ['profile/order'], 'icon' => 'icon icon-person'],
    ]
]);

Label Only

echo TabBar::widget([
    'items' => [
        ['label' => '首页', 'url' => ['shop/index']],
        ['label' => '最新', 'url' => ['shop/hot']],
        ['label' => '热门', 'url' => ['shop/hot']],
        ['label' => '没想好', 'url' => ['shop/hot']],
        ['label' => '订单', 'url' => ['profile/order']],
    ]
]);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.0 is the latest of one release



BSD-3-Clause license
Stats
2 github stars & 1 github forks
0 downloads in the last day
0 downloads in the last 30 days
50 total downloads