2017 © Pedro Peláez
 

library yii2-ratchet-widget

yii2-ratchet-widget

image

xj/yii2-ratchet-widget

yii2-ratchet-widget

  • Thursday, November 30, 2017
  • by xjflyttp
  • Repository
  • 2 Watchers
  • 2 Stars
  • 50 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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']],
    ]
]);

The Versions

30/11 2017

dev-master

9999999-dev

yii2-ratchet-widget

  Sources   Download

BSD-3-Clause

The Requires

  • bower-asset/ratchet ~2.0.0

 

by Avatar xjflyttp

28/08 2015

1.0.0

1.0.0.0

yii2-ratchet-widget

  Sources   Download

BSD-3-Clause

The Requires

  • bower-asset/ratchet ~2.0.0

 

by Avatar xjflyttp