~openerp-dev/openerp-web/trunk-customfilter-jir

« back to all changes in this revision

Viewing changes to addons/web/static/lib/ckeditor/samples/plugins/dialog/assets/my_dialog.js

  • Committer: Vidhin Mehta (OpenERP)
  • Date: 2014-04-21 05:26:17 UTC
  • mfrom: (3747.2.239 trunk)
  • Revision ID: vme@tinyerp.com-20140421052617-spns3fo5ryybbwhx
[MERGE]Trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
 
3
 * For licensing, see LICENSE.md or http://ckeditor.com/license
 
4
 */
 
5
 
 
6
CKEDITOR.dialog.add( 'myDialog', function( editor ) {
 
7
        return {
 
8
                title: 'My Dialog',
 
9
                minWidth: 400,
 
10
                minHeight: 200,
 
11
                contents: [
 
12
                        {
 
13
                                id: 'tab1',
 
14
                                label: 'First Tab',
 
15
                                title: 'First Tab',
 
16
                                elements: [
 
17
                                        {
 
18
                                                id: 'input1',
 
19
                                                type: 'text',
 
20
                                                label: 'Text Field'
 
21
                                        },
 
22
                                        {
 
23
                                                id: 'select1',
 
24
                                                type: 'select',
 
25
                                                label: 'Select Field',
 
26
                                                items: [
 
27
                                                        [ 'option1', 'value1' ],
 
28
                                                        [ 'option2', 'value2' ]
 
29
                                                ]
 
30
                                        }
 
31
                                ]
 
32
                        },
 
33
                        {
 
34
                                id: 'tab2',
 
35
                                label: 'Second Tab',
 
36
                                title: 'Second Tab',
 
37
                                elements: [
 
38
                                        {
 
39
                                                id: 'button1',
 
40
                                                type: 'button',
 
41
                                                label: 'Button Field'
 
42
                                        }
 
43
                                ]
 
44
                        }
 
45
                ]
 
46
        };
 
47
} );
 
48