XUL:Template Features in 1.9: Difference between revisions

(add new sort features)
 
Line 170: Line 170:
==Template Builder API Functionality==
==Template Builder API Functionality==


Some new template builder APIs of the nsIXULTemplateBuilder interface are available. This object can be retrieved using the builder property, the one that is commonly used to call rebuild. This may be used with chrome applications, although some of these may be avialble for non-priviledged applications in the future. To get a result that has been generated by the template:
Some new template builder APIs of the nsIXULTemplateBuilder interface are available. This object can be retrieved using the builder property, the one that is commonly used to call rebuild. This may be used with chrome applications, although some of these may be available for non-priviledged applications in the future. To get a result that has been generated by the template:


var result = builder.getResultForId(id);
var result = builder.getResultForId(id);
287

edits