In-depth analysis of jQuery's folding panel_jquery
WBOYOriginal
2016-05-16 17:31:591149browse
1: Folding panels can place content of different categories in different panels . These panels are stacked on the page, and users can expand them by clicking on the title of each panel. This panel, view the content of the panel, At the same time, other panels will be automatically folded and hidden $(selector).accordion(options); options can be selected The properties are: disabled, active, animated, autoHeight, clearStyle, collapsible, event, fillSpace, header, icons, navigation, navigationFilter Simple example:
The above code first initializes the folding panel as a component that can automatically fill the parent element, then sets the container to automatically resize, and calls it when the size of the container control changes. The resize method of the folding panel, finally achieves the effect of resizing together 5: Events of the folding panel change and changestart events
*event: triggered event object *ui: View object , has 4 attributes, namely newHeader, which represents the title of the current panel; oldHeader, which represents the title of the previous panel; newContent: which represents the content of the current panel; oldContent, which represents the content of the previous panel, These return jQuery objects
Statement:
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