@@ -5,7 +5,6 @@ Schema Form is designed to be easily extended and there are two basic ways to do
551 . Add a new type of field
662 . Add a new decorator
77
8-
98Adding a Field
109--------------
1110To add a new field to Schema Form you need to create a new form type and match that form type with
@@ -70,14 +69,14 @@ the defaults from the schema (it also has its part of the schema under *form.sch
7069This is how you define and use new form field options, whatever is set on the form object is
7170available here for you to act on.
7271
73- | Name | What it does |
74- | ----------| ----------------|
75- | form | Form definition object |
76- | showTitle() | Shorthand for ` form && form.notitle !== true && form.title ` |
77- | errorMessage(msg) | Error message formatting, makes validationMessage option work. |
78- | evalInScope(expr, locals) | Eval supplied expression, ie scope.$eval |
79- | evalExpr(expr, locals) | Eval an expression in the parent scope of the main ` sf-schema ` directive. |
80- | buttonClick($event, form) | Use this with ng-click to execute form.onClick |
72+ | Name | What it does |
73+ | ----------| ----------------|
74+ | form | Form definition object |
75+ | showTitle() | Shorthand for ` form && form.notitle !== true && form.title ` |
76+ | errorMessage(msg) | Error message formatting, makes validationMessage option work. |
77+ | evalInScope(expr, locals) | Eval supplied expression, ie scope.$eval |
78+ | evalExpr(expr, locals) | Eval an expression in the parent scope of the main ` sf-schema ` directive. |
79+ | buttonClick($event, form) | Use this with ng-click to execute form.onClick |
8180
8281### The magic $$ value $$
8382Schema Form wants to play nice with the built in Angular directives for form. Especially ` ng-model `
@@ -101,6 +100,7 @@ responsible for validating the value against the schema using [tv4js](https://gi
101100It takes the form definition as an argument.
102101
103102` schema-validate ` also exports some things on the scope:
103+
104104| Name | What it does |
105105| ----------| --------------|
106106| ngModel | the ngModelController |
0 commit comments