Phaser API Documentation

  Version: 
setClassName(className)

Description:

Sets the className property of the DOM Element node and updates the internal sizes.

Parameters:

name type description
className string

A string representing the class or space-separated classes of the element.

Returns:
Description:

This DOM Element instance.

Since: 3.17.0