Yii Framework Forum: jQuery scenario - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

jQuery scenario Rate Topic: -----

#1 User is offline   FlyBot 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 64
  • Joined: 20-January 09
  • Location:Ukraine

Posted 30 November 2009 - 03:45 PM

sample usage:

$this->widget('application.extensions.Scenario.Scenario',         
         array(
             'rules'=>array(
                 Scenario::Rule('#title', EventMode::BIND, eventType::MOUSE_OVER, 'ul',           
                                array(Action::Animate(Animate::TOGGLE, 500))
                 ),
                 Scenario::Rule("p", eventMode::BIND_ONCE, eventType::CLICK, null,
                                array(Action::Content(Content::SET_HTML,"=AAAAAAAAAAAAAAAAAAA="))
                 ),
                 Scenario::Rule("#d1", eventMode::BIND, eventType::CLICK, null,
                                array(Action::Css(Css::SET_HEIGHT, 300))
                 ),
               )
         )
     );


Why do it? I dont know today. Is this work has a chance to exist? :unsure:
Thank you for your attention.

Attached File(s)


0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users