@friendlycaptcha/sdk > CreateWidgetOptions
CreateWidgetOptions interface
Options when creating a widget programmatically.
Signature:
export interface CreateWidgetOptions
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
apiEndpoint? | string | "eu" | "global" | (Optional) A custom endpoint from which the agent and widgets are loaded. | |
element | HTMLElement | The HTML element to mount to, usually this is an element with class .frc-captcha . | |
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. Usually you should not set this yourself and instead let the widget detect the language automatically. | |
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. * |