To give you Photoshop software users to elaborate on the design of a QQ theme UI icon production tutorial.
Tutorial Sharing:
New document, I use the size of 800*600 pixels, please feel free to do a gradient background, with rounded rectangle tool to draw a rounded rectangle, I use the color is #1a181a!
Subtract with two ellipse
ButtonInteractable: To avoid interacting with the button, you can set it to falseTransition: admin button in normal condition, press, go through when the display stateThe None button works correctly but does not show up under the circumstancesColortint color Multiplier Color multiplier for each button's hueFade Duration fade-out time (seconds) transitions between required statesSpriteswap for picturesAnimation animation can be clicked Auto Generate Animation automatically generate an animation a
the small object property. As shown in the following:
To inherit CWidget and overwrite its init () and run () methods, you can define a new small object:
Class Mywidget extends
cwidget
{public
function init ()
{
//This method will be called by Ccontroller::beginwidget ()
}
Public function run ()
{
//This method will be called by Ccontroller::endwidget ()
}
A widget can have its own view
Php Chinese network (www.php.cn) provides the most comprehensive basic tutorial on programming technology, introducing HTML, CSS, Javascript, Python, Java, Ruby, C, PHP, basic knowledge of MySQL and other programming languages. At the same time, this site also provides a large number of online instances, through which you can better learn programming... CMaskedTextField is a format input box. you can specify a Mask to restrict the text formats that us
writing Dailog.
HTML code
JS Code
The Jquery-ui dialog box
is set $ ("#dialog-message"). Dialog ({
autoopen:false,
width:400,
resizable:false,
And then how is the pass parameter into the dialog box
First, define the Click event Pop-up dialog box
/**
* Pop-up dialog box and pass the parameter * *
(' #table tbody '). On (' Click ', ' #dialog_link ', function () {
var table = $ (' #table ') . DataTable ();
var data =
Development Tutorial (starrating) UI component by modifying it, and the user score is valid only if the verification code entered is correct, avoiding automatic scoring by the machine.
The first is to modify the Datamodel, add a property verifycode to hold the user input verification code, and add Ccaptchavalidator validation.
Classdatamodel extends Cformmodel{public $rating;p ublic $verifyCode;p ublic fun
PHP development framework YiiFramework tutorial (20) UI component Captcha example
Captcha (a Completely Automated Turing test that distinguishes Computers from Humans-Completely automation Public Turing test to tell Computers and Humans Apart, CAPTCHA for short) is commonly known as a verification code, it is a public, fully automated program that distinguishes users from computers and people. In the CAPTCH
PHP development framework YiiFramework tutorial (17) UI component TabView example
CTabView is used to display Tab pages. The basic way to use TabView is to configure the tabs attribute. the following attributes can be configured for each Tab.
Title: tag question.
Content: the content displayed by the tag.
View: The label displays the View Name. if both the Content is specified, the Content is displayed.
Url
PHP development framework YiiFramework tutorial (13) UI component ContentDecorator example
Similar to Layout in Yii Framework in Java Swing, nesting is also allowed, which is implemented through CContentDecorator. However, you do not need to directly use CContentDecorator in the code, but use it in the definition of layout.
$ This-> beginContent ('path/to/view ');//... Content to be decorated$ This-> endCon
, ') '), Array (' text ' = = ') ID ' = ' 8 ', ' haschildren ' = ' = ', ' Children ' =>array (Array (' text ' = ' + ' id ' = ' + ') ', ' haschildren ' = FA LSE,), array (' text ' = ' + ' id ' = ' + ', ' HasChildren ' + false)))));
This adds a link to the text for each node, and also shows the click events using the jquery response node, which is done through the client javascripts.
Modify the View definition
$cs =yii::app ()->clientscript; $cs->registerscript (' Menutreeclick ', "jQuery (' #menu-
Cclipwidget provides the ability to record "macros", and the content defined between Init and run of Cclipwidget can be stored in the controller's clip variable and replayed back to any other location.
Cclipwidget encapsulates the basic usage of beginclip and endclip for Cbasecontroller Beginclip and Endclip,cbasecontroller as follows:
First define Clip
$this->beginclip (' clipid ');//... display the clip contents$this->endclip ();
And then we need to use this clip.
echo $this->clips[' clipid '
the following line when in production mode// defined('YII_DEBUG') or define('YII_DEBUG',true);require_once($yii);Yii::createWebApplication($config)->run();endWidget(); ?>PHP code with Line NumberbeginWidget('CTextHighlighter',array('language'=>'PHP','showLineNumbers'=>'true')); ?>/*** SiteController is the default controller to handle user requests.*/class SiteController extends CController{/*** Index action is the default action in a controller.*/public function actionIndex(){$model=new DataMo
ImageSOURCE Image: The picture to be displayed for the original imageColor: colors are blended with the color of the pictureMaterial: MaterialThe Image Type:simple Wizard extends only to the size that fits the rect transform Preserve Aspect: Whether to keep the sprite's proportions Set Native size:rect revert to the sprite sizeThe sliced uses the nine pattern fill Center: whether to fill the center of the blockTiled tiling modeFilled fill mode specific properties a try to knowUnity5ugui Official
) -4.mp4│ The Magic Cloud classroom-realizing common functions in JQ (2) -5.mp4│ The Magic Cloud classroom-realizing common functions in JQ (3) -6.mp4│ The Magic Cloud classroom-realizing common functions in JQ (4) -7.mp4│ The Magic Cloud classroom-realizing common functions in JQ (5) -8.mp4│└ Cloud Class-implements the chain-of-action and event details in JQ -9.mp4├│├11.14 Evening (Jqui Light Speed primer). rar├ Video 1.exe├ Video 2.exe├ Video 3.exe│└ Video 4.exe: Baidu Network Disk downloadWon
[Web API series tutorial] 3.7-practice: process data (create a UI view)
In this section, you will start to define HTML for the app and add data binding between the HTML and view model.
Open the Views/Home/Index. cshtml file. Use the following code to replace all the content of the file.
BookService
Books
: Details
The vast majority of div elements here are in the Bootstrap style, which is an impor
, which is an important element with data binding properties. This element links HTML to the view model.For example:data-bind="text: error">In this example, the "text" binding causes the P element to display the value of the error property in the view model. The callback for error is declared in ko.obserable:self.error = ko.observable(); Whenever a new value is modified to error, knockout updates the text on the The foreach binding tells knockout to iterate through the books array. For each item
The CClipWidget provides a function similar to the recording "macro". the content defined between the init and run of the CClipWidget can be stored in the Clip variable of the Controller, and then played back to any other location. The CClipWidget provides a function similar to the recording "macro". the content defined between the init and run of the CClipWidget can be stored in the Clip variable of the Controller, and then played back to any other location.
CClipWidget encapsulates the beginC
,),array('text' => ' 'id' => '25' ,'hasChildren' => false,),array('text' => ' 'id' => '26' ,'hasChildren' => false,))),array('text' => ' 'id' => '8' ,'hasChildren' => true,'children' =>array(array('text' => ' 'id' => '22' ,'hasChildren' => false,),array('text' => ' 'id' => '21' ,'hasChildren' => false))))))));
Here, a link is added to the text of each node. it also demonstrates the use of JQuery to respond to node click events, which is achieved through the client JavaScripts.
Modify View defini
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.