Yii2-telex demo


Showing 1-3 of 3 items.
IdClassContent 
 
m1msg-lightgreen<strong>Yii2-telex</strong> is a scrolling news ticker widget
m2msg-amberIt can be used in any Yii2 View
m3msg-tealTry the options below

Give Telex some time to process changes in the messages.

Yii2-telex is a widget for the Yii 2.0 PHP Framework. It continuously displays breaking news, traffic information, stock quotes, and the like. Yii2-telex renders my Javascript/jQuery UI widget Telex.

It is free software, distributed under the MIT License.

Use it in your View like this:

<?php
    use sjaakp\telex\Telex;

    $messages = [
        [
            'id' => 'm1',
            'class' => 'msg-lightgreen',
            'content' => 'Yii-telex is a scrolling news ticker widget'
        ],
        [
            'id' => 'm2',
            // ...
        ],
        // ... more messages ...
    ];

    $dataProvider = new ArrayDataProvider([
        'allModels' => $messages,
    ]);
?>

    ...
<?= Telex::widget([
    'dataProvider' => $dataProvider,
]) ?>
    ...

Consult the documentation for more options.