AppSuite:Demo: Difference between revisions
From Open-Xchange
(Created page with "<div class="title">Demo Stuff</div> ==Extension points== ===Add advertisement banner to mail detail view=== <pre class="language-javascript"> // var ext = require("io.ox/cor...") |
|||
Line 3: | Line 3: | ||
===Add advertisement banner to mail detail view=== | ===Add advertisement banner to mail detail view=== | ||
<pre class="language-javascript"> | <pre class="language-javascript"> | ||
var ext = require("io.ox/core/extensions"); | var ext = require("io.ox/core/extensions"); | ||
ext.point('io.ox/mail/detail').extend({ | ext.point('io.ox/mail/detail').extend({ |
Revision as of 18:57, 24 April 2013
Demo Stuff
Extension points
Add advertisement banner to mail detail view
var ext = require("io.ox/core/extensions"); ext.point('io.ox/mail/detail').extend({ index: 180, id: 'ad', draw: function (data) { this.append( $("<div>") .css({ backgroundImage: "url(http://upload.wikimedia.org/wikipedia/commons/b/b0/Qxz-ad39.png)", width: '468px', height: "60px", margin: "0px auto 20px auto" }) ); } });