X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fckeditor_widgets%2Fjs%2Fplugins%2Fwidgetbootstrap%2Fdialogs%2FwidgetfoundationAccordion.js;fp=web%2Fmodules%2Fcontrib%2Fckeditor_widgets%2Fjs%2Fplugins%2Fwidgetbootstrap%2Fdialogs%2FwidgetfoundationAccordion.js;h=4ad7e2e919c850bda367da666cbafddfad451805;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/ckeditor_widgets/js/plugins/widgetbootstrap/dialogs/widgetfoundationAccordion.js b/web/modules/contrib/ckeditor_widgets/js/plugins/widgetbootstrap/dialogs/widgetfoundationAccordion.js new file mode 100644 index 000000000..4ad7e2e91 --- /dev/null +++ b/web/modules/contrib/ckeditor_widgets/js/plugins/widgetbootstrap/dialogs/widgetfoundationAccordion.js @@ -0,0 +1,61 @@ +CKEDITOR.dialog.add( 'widgetfoundationAccordion', function( editor ) { + return { + title: 'Edit Accordion Box', + minWidth: 200, + minHeight: 100, + contents: [ + { + id: 'info', + elements: [ + { + id: 'name', + type: 'text', + label: 'Accordion machine name', + width: '200px', + setup: function( widget ) { + this.setValue( widget.data.name != undefined ? widget.data.name : 'accordion'); + }, + commit: function( widget ) { + widget.setData( 'name', this.getValue() ); + } + }, + { + id: 'count', + type: 'text', + label: 'Number of panels', + width: '50px', + setup: function( widget ) { + this.setValue( widget.data.count != undefined ? widget.data.count : 3); + }, + commit: function( widget ) { + widget.setData( 'count', this.getValue() ); + } + }, + { + id: 'activePanel', + type: 'text', + width: '50px', + label: 'Active panel (leave blank for accordion to be initially collapsed, or enter the number of the panel you would like open, ex: 1)', + setup: function( widget ) { + this.setValue( widget.data.activePanel); + }, + commit: function( widget ) { + widget.setData( 'activePanel', this.getValue() ); + } + }, + { + id: 'multiExpand', + type: 'checkbox', + label: 'Allow multiple accordion panels to be expanded at the same time', + setup: function( widget ) { + this.setValue( widget.data.multiExpand ); + }, + commit: function( widget ) { + widget.setData( 'multiExpand', this.getValue() ); + } + } + ] + } + ] + }; +} ); \ No newline at end of file