Slide Renderer API

Purpose

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.

JavaScript

renderSlide(slide,index)

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

Events

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.

cf2:slideRenderingChanged
Property Description Type
target The slide renderer that fired the event. Object

Example

var DOMSlideRenderer = V$.Class.create();
DOMSlideRenderer.methods({
  initialize: function() {
  },
  renderSlide: function(s, i) {
    return s;
  }
});

Related topics