https://github.com/philippfrenzel/yii2visjs
yii2 extension wrapper for yis js library
https://github.com/philippfrenzel/yii2visjs
Last synced: 5 months ago
JSON representation
yii2 extension wrapper for yis js library
- Host: GitHub
- URL: https://github.com/philippfrenzel/yii2visjs
- Owner: philippfrenzel
- License: gpl-2.0
- Created: 2015-05-13T09:34:57.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-02-06T19:37:27.000Z (over 8 years ago)
- Last Synced: 2025-01-31T09:34:21.929Z (6 months ago)
- Language: PHP
- Size: 1.15 MB
- Stars: 3
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yii2visjs
================
JQuery visjs Yii2 Extension
JQuery from: http://visjs.org
Version 2.1.1
License MITJQuery Documentation:
http://visjs.org/docs/index.html
Yii2 Extension by[](https://packagist.org/packages/philippfrenzel/yii2visjs)
[](https://travis-ci.org/philippfrenzel/yii2visjs)
[](https://codeclimate.com/github/philippfrenzel/yii2visjs)
[](https://www.versioneye.com/php/philippfrenzel:yii2visjs)
[](https://packagist.org/packages/philippfrenzel/yii2visjs)Installation
============
Package is although registered at packagist.org - so you can just add one line of code, to let it run!add the following line to your composer.json require section:
```json
"philippfrenzel/yii2visjs":"*",
```And ensure, that you have the follwing plugin installed global:
> php composer.phar global require "fxp/composer-asset-plugin:~1.0"
Changelog
---------06-02-2017 Move to latest 4.16.1 Version of VIS Library
29-11-2014 Updated to latest 2.2.3 Version of the library
Usage
=====Quickstart Looks like this:
```php
= \yii2visjs\yii2visjs::widget([
'clientOptions' => [
'editable' => false
],
'dataSet' => [
[
'id' => 1,
'start' => '2015-05-13T14:00:00',
'end'=> '2015-05-14T01:00:00',
'content' => 'Test A',
'type' => 'range'
],
[
'id' => 2,
'start' => '2015-05-15T15:00:00',
'end'=> '2015-05-16T02:00:00',
'content' => 'Test B',
'type' => 'box'
]
],
]); ?>```
Note, that this will only view the events without any detailed view or option to add a new event.. etc.
AJAX Usage
==========
If you wanna use ajax loader, this could look like this:```php
TBD
```