You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: projects/ngx-json-schema-form/src/docs/pages/introduction.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -184,7 +184,7 @@ There are numerous attributes that can be set on a widget which are set via the
184
184
185
185
### Button
186
186
187
-
There are 4 types of buttons that jsf supports, `button`, `image`, `reset` and `submit`. By default, these will all use the `<input>` tag for display. However, with the exception of `image`, you can specify custom html via the `content` option. This will result in the `<button>` being used for display and the content being inserted. Content can contain simple angular bindings so that you can bind to various properties of the layout. For example:
187
+
There are 4 types of buttons that jsf supports, `button`, `image`, `reset` and `submit`. By default, these will all use the `<input>` tag for display. However, with the exception of `image`, you can specify custom html via the `content` option. This will result in the `<button>` being used for display and the content being inserted. Content can contain simple bindings so that you can bind to various properties of the layout. For example:
Here you can see we are specifying that the button should contain an image via the `content` options. The template binds to the properties of the `icon` option which results in an image tag being rendered. The `icon` option is also used when redering a simple button of type `image`.
223
223
224
+
<divclass="alert alert-warning">
225
+
Note: due to current limitation of Angular AOT compilation, use of the angular compile to transpile content strings into HTML DOM is not possible. Recent Angular changes have restricted the inclusion of the compiler in favor of reducing the file size and load time when in AOT mode. Therefore, Handlebars is currently being imported to handle the compilation of content string to HTML DOM.
226
+
</div>
227
+
224
228
We can also respond to events such as a `click`. To do this, we must first bind an event handler to the jsf component
0 commit comments