Skip to content

Commit 641f16e

Browse files
committed
Merge branch 'feature/with-builder' into develop
2 parents 90f2a28 + 9446187 commit 641f16e

File tree

5 files changed

+20
-11
lines changed

5 files changed

+20
-11
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ There is also a `gulp watch` task that minifys on change.
2121
Known Issues
2222
------------
2323
* Almost nothing work
24-
* Only inputs and textare are implemented
25-
* No angular material "theme". Looks like an issue with us using $compile in the link function of
26-
our directives.
24+
* Only inputs and textarea are implemented
25+
* ngModelOptions doesn't work
26+
* Angular material theme only works when `$mdThemingProvider.alwaysWatchTheme(true);` is used.

examples/material-example.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ <h3>Schema</h3>
252252
ngClipProvider.setPath('//cdnjs.cloudflare.com/ajax/libs/zeroclipboard/2.2.0/ZeroClipboard.swf');
253253
}]);*/
254254

255+
app.config(function($mdThemingProvider) {
256+
$mdThemingProvider.setDefaultTheme('default')
257+
$mdThemingProvider.alwaysWatchTheme(true);
258+
});
259+
260+
255261
app.controller('TestCtrl', function($scope, $http, $location) {
256262

257263
$scope.tests = [

src/default.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@
2525
sf-changed="form"
2626
placeholder="{{form.placeholder}}"
2727
id="{{form.key.slice(-1)[0]}}"
28-
ng-model-options="form.ngModelOptions"
2928
ng-class="form.fieldHtmlClass"
3029
ng-disabled="form.readonly"
3130
name="{{form.key.slice(-1)[0]}}"
3231
schema-validate="form">
33-
</md-input-container>
3432

35-
<div sf-message="form.description"></div>
33+
<div sf-message="form.description"></div>
34+
</md-input-container>

src/material-decorator.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
angular.module('schemaForm').config(['schemaFormDecoratorsProvider', function(decoratorsProvider) {
22
var base = 'decorators/material/';
33

4-
decoratorsProvider.createDecorator('materialDecorator', {
4+
decoratorsProvider.defineDecorator('materialDecorator', {
5+
textarea: {template: base + 'textarea.html'},
6+
'default': {template: base + 'default.html'},
7+
submit: {template: base + 'submit.html'}
8+
});
9+
10+
/* decoratorsProvider.createDecorator('materialDecorator', {
511
textarea: base + 'textarea.html',
612
fieldset: base + 'fieldset.html',
713
array: base + 'array.html',
@@ -22,5 +28,5 @@ angular.module('schemaForm').config(['schemaFormDecoratorsProvider', function(de
2228
radiobuttons: base + 'radio-buttons.html',
2329
help: base + 'help.html',
2430
'default': base + 'default.html'
25-
}, []);
31+
});*/
2632
}]);

src/textarea.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,10 @@
44
<textarea ng-class="form.fieldHtmlClass"
55
id="{{form.key.slice(-1)[0]}}"
66
sf-changed="form"
7-
placeholder="{{form.placeholder}}"
87
ng-disabled="form.readonly"
98
ng-model="$$value$$"
10-
ng-model-options="form.ngModelOptions"
119
schema-validate="form"
1210
name="{{form.key.slice(-1)[0]}}"></textarea>
1311

12+
<span class="help-block" sf-message="form.description"></span>
1413
</md-input-container>
15-
<span class="help-block" sf-message="form.description"></span>

0 commit comments

Comments
 (0)