This article is for a specific plugin. Please be sure to read the
Introduction and Overview to jQuery Plugins which provides an introduction to the plugins.
dnnExpandAll
This plugin is used in conjunction with the
dnnPanels plugin. If you have a group of three or more panels – an "expand all" element should be added that when clicks expands all of the currently visible panels. It then switches it’s action state to "collapse all" so that the user may trigger the reverse action.
Available Options and their Defaults
expandText: 'Expand All', // text for expand action
collapseText: 'Collapse All', // text for collapsed action
targetArea: '#dnnHostSettings', // the wrapper around the target panels
targetSelector: 'h2.dnnFormSectionHead a', // the element which triggers the expand/collapse action
targetExpandedSelector: '.dnnSectionExpanded' // the class which identifies the target panel in an expanded state
Usage ExampleThe HTML element would be added in an appropriate place - typically outside of the associated panels.
HTML:
<div class="dnnFormExpandContent"><a href="#"><%=Localization.GetString("ExpandAll", Localization.SharedResourceFile)%></a></div>
JavaScript:
$('#dnnAdvancedSettings .dnnFormExpandContent a').dnnExpandAll({
expandText: '<%=Localization.GetString("ExpandAll", Localization.SharedResourceFile)%>',
collapseText: '<%=Localization.GetString("CollapseAll", Localization.SharedResourceFile)%>',
targetArea: '#dnnAdvancedSettings'
});
Other jQuery Plugins
- dnnAlert - displays a notice in a modal dialog (uses jQuery UI)
- dnnConfirm - displays an "are you sure?" confirmation in a modal dialog (uses jQuery UI)
- dnnPanels - displays content areas in regions that are expandable and collapsible
- dnnTabs - Displays content areas in a tabbed format (uses jQuery UI)
- dnnTooltip - Provides help/info tooltip functionality
- dnnPreview - Helps preview skins and containers in a new window