From a466a2d6705ef934f0ce03b839a87fe07e06557b Mon Sep 17 00:00:00 2001 From: Adria Navarro Date: Thu, 16 Jan 2025 16:44:41 +0100 Subject: [PATCH] Type params --- .../app/blocks/form/FormBlock.svelte | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/packages/client/src/components/app/blocks/form/FormBlock.svelte b/packages/client/src/components/app/blocks/form/FormBlock.svelte index 69f51b84e8..2a0c622750 100644 --- a/packages/client/src/components/app/blocks/form/FormBlock.svelte +++ b/packages/client/src/components/app/blocks/form/FormBlock.svelte @@ -7,21 +7,24 @@ import { Component, Context, SDK } from "../../../../index" import { TableSchema, UIDatasource } from "@budibase/types" - export let actionType + export let actionType: string export let dataSource: UIDatasource - export let size - export let disabled + export let size: string + export let disabled: boolean export let fields - export let buttons - export let buttonPosition - export let title - export let description - export let rowId - export let actionUrl - export let noRowsMessage - export let notificationOverride - export let buttonsCollapsed - export let buttonsCollapsedText + export let buttons: { + "##eventHandlerType": string + parameters: Record + }[] + export let buttonPosition: "top" | "bottom" + export let title: string + export let description: string + export let rowId: string + export let actionUrl: string + export let noRowsMessage: string + export let notificationOverride: boolean + export let buttonsCollapsed: boolean + export let buttonsCollapsedText: string // Legacy export let showDeleteButton