|
1 | | -angular.module('schemaForm').config(['schemaFormDecoratorsProvider', function(decoratorsProvider) { |
2 | | - var base = 'decorators/material/'; |
| 1 | +angular.module('schemaForm') |
| 2 | + .config([ 'schemaFormDecoratorsProvider', function(decoratorsProvider) { |
| 3 | + var base = 'decorators/material/'; |
3 | 4 |
|
4 | | - decoratorsProvider.defineDecorator('materialDecorator', { |
5 | | - textarea: {template: base + 'textarea.html'}, |
6 | | - checkbox: {template: base + 'checkbox.html'}, |
7 | | - 'default': {template: base + 'default.html'}, |
8 | | - submit: {template: base + 'submit.html'} |
9 | | - }); |
| 5 | + decoratorsProvider.defineDecorator('materialDecorator', { |
| 6 | + textarea: { template: base + 'textarea.html' }, |
| 7 | + fieldset: { template: base + 'fieldset.html' }, |
| 8 | + 'default': { template: base + 'default.html' }, |
| 9 | + select: { template: base + 'select.html' }, |
| 10 | + checkbox: { template: base + 'checkbox.html' }, |
| 11 | + checkboxes: { template: base + 'checkboxes.html' }, |
| 12 | + radios: { template: base + 'radios.html' }, |
| 13 | + 'radios-inline': { template: base + 'radios-inline.html' }, |
| 14 | + radiobuttons: { template: base + 'radio-buttons.html' }, |
| 15 | + submit: { template: base + 'submit.html' } |
| 16 | + }); |
10 | 17 |
|
11 | | -/* decoratorsProvider.createDecorator('materialDecorator', { |
12 | | - textarea: base + 'textarea.html', |
13 | | - fieldset: base + 'fieldset.html', |
14 | | - array: base + 'array.html', |
15 | | - tabarray: base + 'tabarray.html', |
16 | | - tabs: base + 'tabs.html', |
17 | | - section: base + 'section.html', |
18 | | - conditional: base + 'section.html', |
19 | | - actions: base + 'actions.html', |
20 | | - select: base + 'select.html', |
21 | | - checkbox: base + 'checkbox.html', |
22 | | - checkboxes: base + 'checkboxes.html', |
23 | | - number: base + 'default.html', |
24 | | - password: base + 'default.html', |
25 | | - submit: base + 'submit.html', |
26 | | - button: base + 'submit.html', |
27 | | - radios: base + 'radios.html', |
28 | | - 'radios-inline': base + 'radios-inline.html', |
29 | | - radiobuttons: base + 'radio-buttons.html', |
30 | | - help: base + 'help.html', |
31 | | - 'default': base + 'default.html' |
32 | | - });*/ |
33 | | -}]); |
| 18 | + /* decoratorsProvider.createDecorator('materialDecorator', { |
| 19 | + textarea: base + 'textarea.html', |
| 20 | + fieldset: base + 'fieldset.html', |
| 21 | + array: base + 'array.html', |
| 22 | + tabarray: base + 'tabarray.html', |
| 23 | + tabs: base + 'tabs.html', |
| 24 | + section: base + 'section.html', |
| 25 | + conditional: base + 'section.html', |
| 26 | + actions: base + 'actions.html', |
| 27 | + select: base + 'select.html', |
| 28 | + checkbox: base + 'checkbox.html', |
| 29 | + checkboxes: base + 'checkboxes.html', |
| 30 | + number: base + 'default.html', |
| 31 | + password: base + 'default.html', |
| 32 | + submit: base + 'submit.html', |
| 33 | + button: base + 'submit.html', |
| 34 | + radios: base + 'radios.html', |
| 35 | + 'radios-inline': base + 'radios-inline.html', |
| 36 | + radiobuttons: base + 'radio-buttons.html', |
| 37 | + help: base + 'help.html', |
| 38 | + 'default': base + 'default.html' |
| 39 | + });*/ |
| 40 | + }]); |
0 commit comments