Skip to main content
Version: v25

CreateTradingViewStyledButtonOptions

Interface

Properties

align

Alignment for the button.

Default

'left'

Type

"left" | "right"


onClick

Optional

A function called when the button is clicked.

Type

() => void

Type declaration

A function called when the button is clicked.

Signature

() => void
Returns

void


text

The text shown on the button.

Type

string


title

Optional

The text shown on hovering the button.

Type

string


useTradingViewStyle

A button with the built-in styles will be created in the header.

Type

true