Skip to content

Modal dialog in Editor

Nako Sung edited this page May 25, 2016 · 4 revisions

With slate framework you can define your own modal/modeless window with just a few lines of code!

let I = require('instantiator')
let UMG = require('UMG')
let design = UMG(JavascriptWindow, 
  {
    SizingRule:'AutoSized', 
    Title:'Hello Modal dialog'
  },
  UMG(Button, {},
    UMG.text({},"Content")
  )
)
I(design).TakeWidget().EditorAddModalWindow()
Clone this wiki locally
You can’t perform that action at this time.