uploadcare-widget-tab-effects
Version:
Effects Tab for Uploadcare Widget. Edit images in desktop and mobile browsers.
32 lines (23 loc) • 452 B
JavaScript
import {createNode} from 'tools'
import template from './Content.html'
const Content = () => {
let $element
const getElement = () => {
if (!$element) {
render()
}
return $element
}
const render = () => {
$element = createNode(template())
}
const appendChild = ($child) => {
if (!$element) return
$element.appendChild($child)
}
return {
getElement,
appendChild,
}
}
export default Content