https://github.com/philippfrenzel/yii2sly
jquery sly
https://github.com/philippfrenzel/yii2sly
Last synced: 5 months ago
JSON representation
jquery sly
- Host: GitHub
- URL: https://github.com/philippfrenzel/yii2sly
- Owner: philippfrenzel
- License: mit
- Created: 2014-05-03T09:21:24.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-21T11:25:06.000Z (over 10 years ago)
- Last Synced: 2024-09-23T14:17:30.972Z (10 months ago)
- Language: JavaScript
- Size: 236 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
yii2sly
=======This extension is a wrapper for the amazing jquery slider "sly" which can be found here:
http://darsa.in/sly/
Pls. take a closer look at all the plugin options, which can be passed over by adding them to
the "clientOptions" parameter as shown below.A demo of the extension can be found here:
http://yii2fullcalendar.beeye.org/index.php/site/sly
Installation
============Add this to your composer.json require section
```json
"philippfrenzel/yii2sly": "*",
```And finaly the view should look like this:
```php
title); ?>
= philippfrenzel\yii2sly\yii2sly::widget([
'id' => 'sp_slider',
'items'=> [
['content' => ''],
['content' => ''],
['content' => ''],
['content' => ''],
['content' => '']
],
'options' => [
'style' => "height:400px;"
],
'clientOptions' => [
'horizontal' => 1,
'activateMiddle' => 1,
...
]
]); ?>```
Currently it cause issues with having multiple sly's on one page, but we know this issue and are working on it.