1010 To change the `title` and `aria-label` values of the submit/cancel/clear buttons, set the `editableOptions` properties:
1111
1212pre.prettyprint .
13- app.run(function(editableOptions) {
13+ app.run(['editableOptions', function(editableOptions) {
1414 editableOptions.submitButtonTitle = 'Submit';
1515 editableOptions.submitButtonAriaLabel = 'Submit';
1616 editableOptions.cancelButtonTitle = 'Cancel';
1717 editableOptions.cancelButtonAriaLabel = 'Cancel';
1818 editableOptions.clearButtonTitle = 'Clear';
1919 editableOptions.clearButtonAriaLabel = 'Clear';
20- });
20+ }] );
2121
2222section#bootstrap3
2323h2 Bootstrap 3
@@ -31,15 +31,15 @@ pre.prettyprint
3131 Set theme in `app.run`:
3232
3333pre.prettyprint .
34- app.run(function(editableOptions) {
34+ app.run(['editableOptions', function(editableOptions) {
3535 editableOptions.theme = 'bs3';
36- });
36+ }] );
3737
3838:markdown
3939 To have smaller or bigger controls modify `inputClass` and `buttonsClass` properties of theme:
4040
4141pre.prettyprint .
42- app.run(function(editableOptions, editableThemes) {
42+ app.run(['editableOptions', 'editableThemes', function(editableOptions, editableThemes) {
4343 editableThemes.bs3.inputClass = 'input-sm';
4444 editableThemes.bs3.buttonsClass = 'btn-sm';
4545 editableOptions.theme = 'bs3';
@@ -57,9 +57,9 @@ pre.prettyprint
5757 Set theme in `app.run`:
5858
5959pre.prettyprint .
60- app.run(function(editableOptions) {
60+ app.run(['editableOptions', function(editableOptions) {
6161 editableOptions.theme = 'bs2';
62- });
62+ }] );
6363
6464section#default
6565h2 Default
@@ -68,13 +68,13 @@ h2 Default
6868 You can customize theme in `app.run` by overwriting properties:
6969
7070pre.prettyprint .
71- app.run(function(editableOptions, editableThemes) {
71+ app.run(['editableOptions', 'editableThemes', function(editableOptions, editableThemes)
7272 // set `default` theme
7373 editableOptions.theme = 'default';
7474
7575 // overwrite submit button template
7676 editableThemes['default'].submitTpl = '< button type="submit"> ok< /button> ';
77- });
77+ }] );
7878
7979:markdown
8080 Available properties of each theme you can see in source
0 commit comments