流言蜚语

流言蜚语

这家伙有点懒,还没写个性签名!

  • 财富值18660
  • 威望值0
  • 总积分19060

个人信息

  • 回复了 的回答

    我有封装了个 widgets,免 composer安装,下载地址:http://pan.baidu.com/s/1sj7hqkX

    你下好后改一下它的命名空间就可以了。放在哪里就看你的命名空间。

    谢谢大神,我试试看

  • 回复了 的回答

    当一回搬运工~

    Installation 
    
    If you do not have Composer, you may install it by following the instructions at getcomposer.org.
    
    You can then install this package using the following command:
    
    php composer.phar require "janisto/yii2-timepicker" "*"
    or add
    
    "janisto/yii2-timepicker": "*"
    to the require section of your application's composer.json file.
    
    Usage 
    
    See jQuery Timepicker options.
    
    For example to use the timepicker with a yii\base\Model:
    
    echo TimePicker::widget([
         //'language' => 'fi',
        'model' => $model,
        'attribute' => 'created_at',
        'mode' => 'datetime',
        'clientOptions'=>[
            'dateFormat' => 'yy-mm-dd',
            'timeFormat' => 'HH🇲🇲ss',
            'showSecond' => true,
        ]
    ]);
    The following example will use the name property instead:
    
    echo TimePicker::widget([
         //'language' => 'fi',
        'name'  => 'from_time',
        'value'  => $value,
        'mode' => 'time',
    ]);
    You can also use this widget in an yii\widgets\ActiveForm using the yii\widgets\ActiveField::widget() method, for example like this:
    
    echo $form->field($model, 'field')->widget(\janisto\timepicker\TimePicker::className(), [
        //'language' => 'fi',
        'mode' => 'datetime',
        'clientOptions'=>[
            'dateFormat' => 'yy-mm-dd',
            'timeFormat' => 'HH🇲🇲ss',
            'showSecond' => true,
        ]
    ]);
    

    这些我看过的,可是我没有安装composer,而且有点看不懂

  • 回复了 的回答

    这些我看过的,可是我没有安装composer,而且有点看不懂

  • 2015-07-24 已签到
    连续签到7天,获得了20个金钱
  • 提出了问题
    关于yii2.0里面的timepicker
  • 2015-07-23 已签到
    连续签到6天,获得了20个金钱
  • 2015-07-22 已签到
    连续签到5天,获得了20个金钱
  • 2015-07-21 已签到
    连续签到4天,获得了20个金钱
  • 2015-07-20 已签到
    连续签到3天,获得了15个金钱
  • 2015-07-19 已签到
    连续签到2天,获得了10个金钱
19060/20000
资料完整度
10/100
用户活跃度
10/100

Ta的关注

8

Ta的粉丝

13

Ta的访客

27