boloka
→ save()Downloads data or a canvas.
boloka([diteng], [leina], [mofuta])Pinned 2.3.2 dispatches no arguments or one file-name string to the current canvas; a renderer/graphics buffer to its canvas; .json to saveJSON; .txt or arrays to saveStrings; table to saveTable; and canvas image to its canvas. Plain objects require a .json filename. Arbitrary element wrapper and native Blob/File are unsupported, and the sound addon is absent. Prefer the specific export helpers for predictable types. Native return is undefined.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
diteng (optional) | `selo | mokwalo` |
leina (optional) | mokwalo | File name with extension. |
mofuta (optional) | mokwalo | Native export option/extension. |
Examples
Section titled “Examples”tiro setaLoeto() {
tlosaKanefase();
diri e = bopaKonopo("Boloka");
dirisaMoGo(e, pebaEKonyilwe, () => boloka({palo: 3}, "dipalo.json"));
}