UIDialogImage

Properties

Name Type
props props
state state

new UIDialogImage(props)

A dialog image component

Used to display and edit image metadata in a dialog window.

Param Type
props props

Example

import {UIDialogImage} from 'writer'

render($$) {
    api.ui.showDialog(
         UIDialogImage,
         {
             node: imageNode,
             url: imageNode.getUrl(),
             newsItem: imageNewsItem,
             disablebylinesearch: false,
             focusOnRender: true
         },
         {
             title: this.getLabel('Image archive information'),
             global: true,
             primary: this.getLabel('Save'),
             secondary: this.getLabel('Cancel'),
             cssClass: 'np-image-dialog hide-overflow',
             focusPrimary: false
         }
    )
}

UIDialogImage.props

Properties

Name Type Default Description
node Node The Image's Substance Node
newsItem object Newsitem representation of image
url string Render url for image
disablebylinesearch boolean Disable byline search functionality
[focusOnRender] boolean false Whether or not to focus on the first input field after render. Default is false

UIDialogImage.state

Properties

Name Type Description
tab string "main", "active", or "extended"

results matching ""

    No results matching ""