UNPKG

@botonic/plugin-flow-builder

Version:

Use Flow Builder to show your contents

17 lines (16 loc) 687 B
/// <reference types="react" /> import { Webview } from '@botonic/react'; import { FlowBuilderApi } from '../api'; import { ContentFieldsBase } from './content-fields-base'; import { HtButton, HtButtonStyle } from './hubtype-fields'; export declare class FlowButton extends ContentFieldsBase { text: string; url?: string; payload?: string; target?: string; webview?: Webview; static fromHubtypeCMS(cmsButton: HtButton, locale: string, cmsApi: FlowBuilderApi): FlowButton; static getUrlId(cmsButton: HtButton, locale: string): string | undefined; renderButton(buttonIndex: number, buttonStyle?: HtButtonStyle): JSX.Element; private getButtonPayload; }