Defines methods that render the contents of a slide provided by the corresponding slide model into a DOM Element that can then be displayed on an XDIME page by ui:slide-view.
Renders the slide into a DOM Element which can then be displayed on an XDIME page by ui:slide-view. The method returns the DOM element representing the slide.
Parameter | Description | Type |
---|---|---|
slide | The slide to render. | any |
index | The index of the slide. | int |
If the renderer needs to change the rendered form of the slide without changing the content, for example, because the user selected a different style, then the cf2:slideRenderingChanged event is fired.
Property | Description | Type |
---|---|---|
target | The slide renderer that fired the event. | Object |
var DOMSlideRenderer = V$.Class.create();
DOMSlideRenderer.methods({
initialize: function() {
},
renderSlide: function(s, i) {
return s;
}
});