Creates an instance of a Message.
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
opts | 
            
            
            object | 
                
                    
                        optional
                    
                    
                        
                    
                
                 An options object to specify to style and behaviour of the message. 
  | 
        
- See:
 
Example
// Create the PixiJS App
const app = new PIXIApp({
    view: canvas,
    width: 900,
    height: 250
}).setup().run()
// Create a button
let button = new Button({
    label: 'Click me',
    action: e => {
        const message = new Message({
            app: app,
            header: 'Header',
            content: 'Text.'
        })
        app.scene.addChild(message)
    }
})
// Add the button to the scene
app.scene.addChild(button)