Template:CustomEventProperties

<%
// $0 : Type
// $1 : Description
// $2 : name of property — usually detail or details

var type = $0 || 'any';
var desc = $1 || mdn.localString({
    "en-US" : "The data passed when initializing the event.",
    "fr"    : "Les données spécifiées lors de la création de l'évènement.",
    "ja"    : "イベント初期化時に渡されたデータ"
});

var propName = $2 || 'detail';


%> <tr>
    <td><code><%= propName %></code> <%- template("readonlyInline", [])%></td>
    <td><code><%= type %></code></td>
    <td><%= desc %></td>
 </tr>
Search for pages that use Template:CustomEventProperties to see example use cases and how many pages use this macro.

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, ethertank, Jeremie
 Last updated by: chrisdavidmills,