UIInlineImage

Inline image component which rerenders itself when its FileNode is loaded.

Since: 6.3.0 (3.8.0)

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