Home > Backend Development > PHP Tutorial > Yii Framework Development Tutorial Zii Component-Resizable Example_PHP Tutorial

Yii Framework Development Tutorial Zii Component-Resizable Example_PHP Tutorial

WBOY
Release: 2016-07-14 10:08:08
Original
756 people have browsed it

CJuiResizable enables the UI components contained in it to support zoom functions. It encapsulates the JUI Resizable plug-in.

The basic usage of CJuiResizable is as follows:
[php]
beginWidget('zii.widgets.jui.CJuiResizable', array(
'options'=>array(
'minWidth'=>50,
'minHeight'=>50,
'maxWidth'=>500,
'maxHeight'=>500,
        ),  
'htmlOptions'=>array(
                                                                                                                                                                                                                                                                                                 
padding: 0.5em; border: 1px solid #e3e3e3; background: #f7f7f7 '
        ),  
) );
echo 'Your resizable content here';
$this->endWidget();
?>
beginWidget('zii.widgets.jui.CJuiResizable', array(
'options'=>array(
'minWidth'=>50,
'minHeight'=>50,
'maxWidth'=>500,
'maxHeight'=>500,
),
'htmlOptions'=>array(
'style'=>'width: 150px; height: 150px;
padding: 0.5em; border: 1px solid #e3e3e3; background: #f7f7f7'
),
));
echo 'Your resizable content here';
$this->endWidget();
?>
Defining the content that needs to support the zoom function in beginWidget and endWidget of CJuiResizable can directly implement the zoom function.
Yii Framework Development Tutorial Zii Component-Resizable Example_PHP Tutorial

http://www.bkjia.com/PHPjc/477822.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/477822.htmlTechArticleCJuiResizable can enable the UI components contained in it to support scaling functions. It encapsulates the JUI Resizable plug-in. Basic usage of CJuiResizable As follows: [php] ?php $this-beginWidget(zii.wi...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template