Further modules included.
[yaffs-website] / web / modules / contrib / ckeditor_widgets / js / plugins / widgetbootstrap / dialogs / widgetfoundationAccordion.js
1 CKEDITOR.dialog.add( 'widgetfoundationAccordion', function( editor ) {
2     return {
3         title: 'Edit Accordion Box',
4         minWidth: 200,
5         minHeight: 100,
6         contents: [
7             {
8                 id: 'info',
9                 elements: [
10                     {
11                         id: 'name',
12                         type: 'text',
13                         label: 'Accordion machine name',
14                         width: '200px',
15                         setup: function( widget ) {
16                             this.setValue( widget.data.name != undefined ? widget.data.name : 'accordion');
17                         },
18                         commit: function( widget ) {
19                             widget.setData( 'name', this.getValue() );
20                         }
21                     },
22                     {
23                         id: 'count',
24                         type: 'text',
25                         label: 'Number of panels',
26                         width: '50px',
27                         setup: function( widget ) {
28                             this.setValue( widget.data.count != undefined ? widget.data.count : 3);
29                         },
30                         commit: function( widget ) {
31                             widget.setData( 'count', this.getValue() );
32                         }
33                     },
34                     {
35                         id: 'activePanel',
36                         type: 'text',
37                         width: '50px',
38                         label: 'Active panel (leave blank for accordion to be initially collapsed, or enter the number of the panel you would like open, ex: 1)',
39                         setup: function( widget ) {
40                             this.setValue( widget.data.activePanel);
41                         },
42                         commit: function( widget ) {
43                             widget.setData( 'activePanel', this.getValue() );
44                         }
45                     },
46                     {
47                         id: 'multiExpand',
48                         type: 'checkbox',
49                         label: 'Allow multiple accordion panels to be expanded at the same time',
50                         setup: function( widget ) {
51                             this.setValue( widget.data.multiExpand );
52                         },
53                         commit: function( widget ) {
54                             widget.setData( 'multiExpand', this.getValue() );
55                         }
56                     }
57                 ]
58             }
59         ]
60     };
61 } );