Class: Element

Element({[elemType, slideIndex, slideData, parentElem, innerHTML, innerText, elemId, attr, style, createNewElementopt)

Class Representing Single Element of a slide

Constructor

new Element({[elemType, slideIndex, slideData, parentElem, innerHTML, innerText, elemId, attr, style, createNewElementopt)

Create a Element
Parameters:
Name Type Attributes Default Description
{[elemType String "div" type of element (eg. div)
slideIndex number index of the slide
slideData Object all the data of the slide
parentElem String Parent Element in which new element is appened
innerHTML String content of the element
innerText String content of the element
elemId String | Number Id of the element
attr Object all the attributes of the element
style Object default style of the element that will be applied inline on element
createNewElement Boolean <optional>
create new element or import element
Source:

Methods

init()

A function to initilize the slide Element
Source:
Returns:
Element Object