Class: ButtonContainer

ButtonContainer

Button based on container. You can use it same Button but without need to pre create a container and interact with it through .view accessor.

Example

 const button = new ButtonContainer(
      new Graphics()
          .fill(0xFFFFFF)
          .roundRect(0, 0, 100, 50, 15)
 );

 button.onPress.connect(() => console.log('onPress'));

 container.addChild(button);

Extends

  • Container