定制 simialbi/yii2-widget-yohours 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

simialbi/yii2-widget-yohours

最新稳定版本:1.0.1

Composer 安装命令:

composer require simialbi/yii2-widget-yohours

包简介

yii2 widget to create opening_hours data

README 文档

README

This extension integrates an OSM compatible Opening Hours widget into yii2 framework. It's based on Adrien Pavie's YoHours Application.

A live demo is available at projets.pavie.info/yohours.

Resources

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require --prefer-dist simialbi/yii2-widget-yohours

or add

"simialbi/yii2-widget-yohours": "*"

to the require section of your composer.json

Example Usage

To include an yohours input field widget call the widget like this:

<?php
/* @var $this yii\web\View */
/* @var $value string */

use simialbi\yii2\yohours\YoHours;
    
?>


<div class="my-form">
    <?php

    echo YoHours::widget([
        'name'  => 'opening_hours',
        'value'  => $value,
        // 'clientOptions' => [
           // 'locale' => 'en',
           // 'bootstrapVersion' => 'bootstrap4',
           // 'height' => 600,
           // 'delay' => 700
        // ]
    ]);
    
    // or model like usage
    /* @var $form \yii\widgets\ActiveForm */
    /* @var $model \yii\base\Model */
    echo $form->field($model, 'opening_hours')->widget(YoHours::class, [
        // 'clientOptions' => [
           // 'locale' => 'en',
           // 'bootstrapVersion' => 'bootstrap4',
           // 'height' => 600,
           // 'delay' => 700
        // ]
    ]);
?>
</div>

License

yii2-widget-yohours is released under MIT license. See bundled LICENSE for details.

统计信息

  • 总下载量: 1.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固