Thursday, December 2, 2010

YII » Using JQuery UI Dialog Boxes

In a view, add this (within php tags):


echo 'dialog contents here';


That's your bare minimum.

Here it is modal, with a title, and an "OK" button that closes the dialog:
        , array('options'=>array(
            'title'=>'My Title'
            , 'modal'=>true
            , 'buttons'=>array('OK'=>'js:function(){$(this).dialog("close")}')

echo 'I am a modal dialog with an OK button';


No comments:

Post a Comment