Telex widget is a widget to render my Javascript telex widget. It displays horizontal scrolling news messages, traffic information, stock quotes, and the like, provided by a Yii2 DataProvider
.
A demonstration of Yii2-telex is here.
Install Yii2-telex with Composer. Either add the following to the require
section of your composer.json
file:
"sjaakp/yii2-telex": "*"
Or run:
composer require sjaakp/yii2-telex "*"
You can manually install Yii2-telex by downloading the source in ZIP-format.
Yii2-telex has the following options:
yii\data\DataProviderInterface
providing BaseObject
s with message data."body"
."style"
."url"
."telex-"
.Yii2-telex's protected function prepareBody($str)
can be overridden. To manipulate the body text before it is sent to the widget.
The default implementation just returns $str
.
Comments