YiiFramework development tutorial Zii component-Accordion Example
Source: Internet
Author: User
The Zii component contains JQuery-based UI components defined in the zii. widgets. jui package, including CJuiAccordion, CJuiAutoComplete, and CJuiDatePicker. This article introduces CJuiAccordion and displays an Accordion component (similar to the Accordion that can be folded... the Zii component contains JQuery-based UI components defined in the package zii. widgets. jui, 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. Basic usage: [php] 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,), 'htmloptions '=> array ('style' => 'width: 500px;'),);?> 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,), 'htmloptions '=> 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.
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.