AppSuite:Modifying forms by using extension points: Difference between revisions

From Open-Xchange
No edit summary
Line 6: Line 6:
// get all available extensionpoints
// get all available extensionpoints
require('io.ox/core/extensions').keys();
require('io.ox/core/extensions').keys();
</pre>
<pre class="language-javascript">
// you can filter down the list by using a regular expression
_(require('io.ox/core/extensions').keys()).filter(function (point) {
    if (/io.ox\/contacts\/edit/.test(point)) {
        return point;
    }
});
</pre>
</pre>


[[Category:AppSuite]]
[[Category:AppSuite]]
[[Category:UI]]
[[Category:UI]]

Revision as of 08:02, 10 April 2013

Summary: This articles covers how to apply different changes to forms via modifying its extensionpoints.

available extensionpoints

 
// get all available extensionpoints
require('io.ox/core/extensions').keys();
 
// you can filter down the list by using a regular expression 
_(require('io.ox/core/extensions').keys()).filter(function (point) {
    if (/io.ox\/contacts\/edit/.test(point)) {
        return point;
    }
});