friendly-captcha-sdk > CreateWidgetOptions
CreateWidgetOptions interface
Options when creating a widget programmatically.
Signature:
export interface CreateWidgetOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
element | HTMLElement | The HTML element to mount to, usually this is an element with class .frc-captcha . | |
endpoint? | string | (Optional) A custom endpoint from which the agent and widgets are loaded. | |
formFieldName? | string | null | (Optional) The name of the field in the form that is set, defaults to frc-captcha-response . | |
language? | string | (Optional) Language code such as "en" for English or "de" for German. Defaults to automatic language detection. | |
sitekey? | string | (Optional) Sitekey of your application, starts with FC . | |
startMode? | StartMode | (Optional) The start mode determines the behavior around automatic activation of the widget. Activation here means the challenge gets requested and gets solved. Defaults to * | |
theme? | "light" | "dark" | "auto" | (Optional) The theme for the widget. * |