ecountdownaction Countdown Action Widget

  1. Requirements
  2. Usage

This simple widget allows to trigger an action after a given time in seconds...

Requirements

  • Yii >= 1.1

Usage

  • Set the time in seconds
  • Write the action code
  • Enjoy it!
$this->widget('ext.ecountdownaction.ECountdownAction',
        array(
          'seconds'=>8, //8 seconds
          'action'=>'{alert("hello world!")}', //action code...
        )
      );

Another example using bootstrap extension, auto opening a modal window:

$this->widget('ext.ecountdownaction.ECountdownAction',
        array(
          'seconds'=>3,
          'action'=>"$('#modal').bootModal('open');",
        )
      );
?>
4 2
8 followers
621 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: ytannus
Created on: Dec 6, 2011
Last updated: 7 years ago

Downloads

show all

Related Extensions