UIInlineImage
Inline image component which rerenders itself when its FileNode is loaded.
Properties
Name
Type
Default
Description
nodeId
string
Required - The file/image nodeId which implements getUrl-method
draggable
boolean
true
If image should have draggable attribute or not
onLoad
function
On load callback
class
string
Added extra class to img-element
Example
import {UIInlineImage} from 'writer'
render($$) {
const el = $$('div')
return el.append($$(UIInlineImage, {
nodeId: imageFileNodeId
}))
}
Last updated
Was this helpful?