Techdocs

AMP Web SDK

AMP player

React

React

new React(player, configopt, key)

Creates an instance of the React plugin.

Parameters
Name Type Attributes Description
player akamai.amp.Player

The player instance

config akamai.amp.react.ReactConfig | Object <optional>

The configuration override object, or JSON string. Must adhear to the akamai.amp.react.ReactConfig interface.

key string

The plugin identifier.

Members

ads

:HTMLElement

A reference to the ad DOM element

components

:Object

A map of the UI's components.

container

:akamai.amp.react.Container

A reference to the UI container

controls

:akamai.amp.react.Container

A reference to the control bar container

mode

:akamai.amp.react.Mode

A style theme object to apply to the UI.

theme

:akamai.amp.react.Theme

A style theme object to apply to the UI.