YiiFramework development tutorial Zii component-Accordion example _ PHP Tutorial

Source: Internet
Author: User
YiiFramework development tutorial Zii component-Accordion example. The Zii component contains JQuery-based UI components defined in the zii. widgets. jui package, including CJuiAccordion, CJuiAutoComplete, and CJuiDatePicker. This article introduces some JQuery-based UI components in the CJuiAcc Zii component, which are defined in the zii. widgets. jui package, including CJuiAccordion, CJuiAutoComplete, and CJuiDatePicker. This article describes CJuiAccordion and displays an Accordion component (similar to the UI component that can be folded by the Accordion ). This control encapsulates the JUI Accordion plug-in.

The basic usage is as follows:

[Php]

$ This-> widget ('zii. widgets. jui. cjuiaccordion', array (

'Panels' => array (

'Panel 1' => 'Content for panel 1 ',

'Panel 2' => 'Content for panel 2 ',

'Panel 3' => $ this-> renderPartial ('_ content1', null, true ),

),

'Options' => array (

'Collapsible '=> true,

'Activity' => 1,

),

'Htmlopexception' => array (

'Style' => 'width: 500px ;'

),

));

?>

$ This-> widget ('zii. widgets. jui. cjuiaccordion', array (

'Panels' => array (

'Panel 1' => 'Content for panel 1 ',

'Panel 2' => 'Content for panel 2 ',

'Panel 3' => $ this-> renderPartial ('_ content1', null, true ),

),

'Options' => array (

'Collapsible '=> true,

'Activity' => 1,

),

'Htmlopexception' => array (

'Style' => 'width: 500px ;'

),

));

?>

Define the panels attribute to define several foldable pages of Accordion and send parameters to the JUI Accordion plug-in by configuring options.

Certificate, CJuiAutoComplete, CJuiDatePicker, etc. This article introduces CJuiAcc...

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.