Phaser API Documentation

  Version: 
DOMContainerConfig
Properties:
name type arguments Default description
createContainer boolean <optional> false

Should the game create a div element to act as a DOM Container? Only enable if you're using DOM Element objects. You must provide a parent object if you use this feature.

behindCanvas boolean <optional> false

Should the DOM Container that is created (if dom.createContainer is true) be positioned behind (true) or over the top (false, the default) of the game canvas?

pointerEvents string <optional> 'none'

The default pointerEvents attribute set on the DOM Container.

Type:
object
Since: 3.12.0