Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
9be83188
Commit
9be83188
authored
May 24, 2013
by
Alexander Kochetov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jQuery UI dialog widget
parent
9948aec1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
2 deletions
+55
-2
Dialog.php
framework/yii/jui/Dialog.php
+53
-0
assets.php
framework/yii/jui/assets.php
+2
-2
No files found.
framework/yii/jui/Dialog.php
0 → 100644
View file @
9be83188
<?php
/**
* @link http://www.yiiframework.com/
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace
yii\jui
;
use
yii\helpers\base\ArrayHelper
;
use
yii\helpers\Html
;
/**
* Dialog renders an dialog jQuery UI widget.
*
* For example:
*
* ```php
* Dialog::begin(array(
* 'clientOptions' => array(
* 'modal' => true,
* ),
* ));
*
* echo 'Dialog contents here...';
*
* Dialog::end();
* ```
*
* @see http://api.jqueryui.com/dialog/
* @author Alexander Kochetov <creocoder@gmail.com>
* @since 2.0
*/
class
Dialog
extends
Widget
{
/**
* Initializes the widget.
*/
public
function
init
()
{
parent
::
init
();
echo
Html
::
beginTag
(
'div'
,
$this
->
options
)
.
"
\n
"
;
}
/**
* Renders the widget.
*/
public
function
run
()
{
echo
Html
::
endTag
(
'div'
)
.
"
\n
"
;
$this
->
registerWidget
(
'dialog'
);
}
}
framework/yii/jui/assets.php
View file @
9be83188
...
...
@@ -559,7 +559,7 @@ return array(
'js'
=>
array
(
'jquery.ui.dialog.js'
,
),
'depends'
=>
array
(
'yii/jui/core'
,
'yii/jui/widget'
,
'yii/jui/button'
,
'yii/jui/draggable'
,
'yii/jui/mouse'
,
'yii/jui/position'
,
'yii/jui/resiz
e
able'
,
'yii/jui/effect/all'
),
'depends'
=>
array
(
'yii/jui/core'
,
'yii/jui/widget'
,
'yii/jui/button'
,
'yii/jui/draggable'
,
'yii/jui/mouse'
,
'yii/jui/position'
,
'yii/jui/resizable'
,
'yii/jui/effect/all'
),
),
'yii/jui/draggable'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
...
...
@@ -803,7 +803,7 @@ return array(
'css'
=>
array
(
'themes/base/jquery.ui.dialog.css'
,
),
'depends'
=>
array
(
'yii/jui/theme/base/core'
,
'yii/jui/theme/base/button'
,
'yii/jui/theme/base/resiz
e
able'
),
'depends'
=>
array
(
'yii/jui/theme/base/core'
,
'yii/jui/theme/base/button'
,
'yii/jui/theme/base/resizable'
),
),
'yii/jui/theme/base/menu'
=>
array
(
'sourcePath'
=>
__DIR__
.
'/assets'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment