Skip to content

Commit c9a91a5

Browse files
committed
Merge branch 'development' of github.com:Textalk/angular-schema-form into development
2 parents 44f4b61 + 673a670 commit c9a91a5

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

docs/index.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ Documentation
2525
1. [array](#array)
2626
1. [tabarray](#tabarray)
2727
1. [Post process function](#post-process-function)
28+
1. [Events](#events)
2829
1. [Manual field insertion](#manual-field-insertion)
2930
1. [Extending Schema Form](extending.md)
3031

@@ -1033,7 +1034,14 @@ angular.module('myModule', ['schemaForm']).config(function(schemaFormProvider){
10331034
});
10341035
```
10351036
1037+
Events
1038+
---------------------
1039+
Events are emitted or broadcast at various points in the process of rendering or validating the
1040+
form. Below is a list of these events and how they are propagated.
10361041
1042+
| Event | When | Type | Arguments |
1043+
|:--------------------:|:----------------------:|:-----:|:----------------------------------:|
1044+
| `sf-render-finished` | After form is rendered | emit | The sf-schema directives's element |
10371045
10381046
### Manual field insertion
10391047
There is a limited feature for controlling manually where a generated field should go so you can

src/directives/schema-form.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ angular.module('schemaForm')
137137
}
138138
}
139139
});
140-
}
140+
};
141+
scope.$emit('sf-render-finished', element);
141142
});
142143
}
143144
};

0 commit comments

Comments
 (0)