Skip to content

Commit 6c0606f

Browse files
committed
Support for placeholder
"placeholder" in form definition will add a placeholder to the input field.
1 parent 4f7c69a commit 6c0606f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/directives/decorators/bootstrap/default.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<div class="form-group" ng-class="{'has-error': hasError()}">
22
<label ng-show="form.title">{{form.title}}</label>
33

4-
<input type="{{form.type}}" class="form-control" ng-required="form.required" ng-model="$$value$$" schema-validate="form.schema">
4+
<input type="{{form.type}}"
5+
placeholder="{{form.placeholder}}"
6+
class="form-control"
7+
ng-required="form.required"
8+
ng-model="$$value$$"
9+
schema-validate="form.schema">
510

611
<span class="help-block" ng-show="form.description && !hasError()">{{form.description}} </span>
712
<span class="help-block" ng-show="hasError()">{{schemaError}} {{ngModel.$error}}</span>

0 commit comments

Comments
 (0)