Skip to content

Commit 5b8b142

Browse files
committed
Fire event, when rendering of form is ready
With this event, we can do some extra things to the rendered form. My use case is executing $.material.init() from https://github.com/FezVrasta/bootstrap-material-design. I can not do that with postprocess, because I need a fully rendered form in my use case.
1 parent ac29fb9 commit 5b8b142

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/directives/schema-form.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ angular.module('schemaForm')
116116
}
117117
}
118118
});
119-
}
119+
};
120+
$(element[0]).triggerHandler("sf-render-finished");
120121
});
121122
}
122123
};

0 commit comments

Comments
 (0)