ga / turntable
yii2-turntable
Installs: 12
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 1
Open Issues: 1
pkg:composer/ga/turntable
This package is not auto-updated.
Last update: 2025-10-26 01:45:31 UTC
README
A turntable for lottery activity.
The GATurntable has two scroll types.
1.POINTER_SCROLL
2.TURNTABLE_SCROLL
How to install
composer require ga/turntable dev-master
How to useage
In the view file you should include following code:
<?php use ga\turntable\TurntableWidget; use ga\turntable\TurntableAsset; TurntableAsset::register($this); ?> <?= TurntableWidget::widget(['scrollType'=>TurntableWidget::TURNTABLE_SCROLL])?>
Configuration params
The configuartion is very easy,we can set the public property:
$deganimate degree$animationTimein the other word it's the speed of animation$pointerCallbackjs code in here.If the pointer complete animation will trigger this function.$turntableCallbackjs code in here.If the turntable complete animation will trigger this function.$scrollTypeself::POINTER_SCROLL or self::TURNTABLE_SCROLL$pointerImagePathcustom pointer image path$turntableImagePathcustom turntable image path$turntableBGImagePathcustom turntable background image path

