Yii 1.1: jcenter

centers elements to screen
7 followers

This widget encapsulates the JCenter-jQuery plugin. The plugin centers elements to screen. Responds to resize event.

Requirements

Yii 1.1.6 or above...

Usage

  • install and explore the code of the demo application
  • or put in a view code blocks like the following...
<?php $this->widget('ext.jcenter.JCenter', array(
    "Id"=>"login-screen",
    "horizontal"=>true,
    "vertical"=>true,
    "resize"=>true,
)); ?>

Change log

Version 1.0

  • initial release

Version 1.1

  • code optimation
  • added minified javascript

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension