Upota
Embedding is a simple way to include the app in your website. Add the following code to your website:
Valinnat
Valinta | Tyyppi | Oletus | Kuvaus |
---|---|---|---|
tallenna | Boolean (true, false) | true | Enable save. If disabled, only an exit button will be shown |
editable | Boolean (true, false) | true | Enable editing. If disabled, the document will be read-only |
kieli | Merkkijono (…, järjestelmä, käyttäjä) | system | Language of the document. If system, the language will be detected from the browser. If user, the language will set to the users preference |
Tapahtumat
Esimerkkejä siitä, miten sitä käytetään:
tallenna
The
save
event is emitted when the user clicks the save button.
Parametrit:
data
(TypeList<int>
): The data of the document.
poistu
The
exit
event is emitted when the user clicks the exit button.
Parametrit:
data
(TypeList<int>
): The data of the document.
change
The
change
event is emitted when the user changes the document.
Parametrit:
data
(TypeList<int>
): The data of the document.
Menetelmät
Esimerkki siitä, miten sitä käytetään:
getData
The
getData
method returns the data of the document.
No parameters.
Returns: List<int>
setData
The
setData
method sets the data of the document.
Parametrit:
data
(TypeList<int>
): The data of the document.
render
The
render
method renders the document to a png image.
Parametrit:
width
(TypeNumber
): The width of the image.height
(TypeNumber
): The height of the image.scale
(TypeNumber
): The scale of the image.renderBackground
(TypeBoolean
): If true, the background will be rendered.
Returns: String
(Base64 encoded image)
renderSVG
The
renderSVG
method renders the document to a svg image.
Parametrit:
width
(TypeNumber
): The width of the image.height
(TypeNumber
): The height of the image.renderBackground
(TypeBoolean
): If true, the background will be rendered.
Returns: String
(SVG)