mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-19 16:52:29 +00:00
a424450cbe
Summary: A new widget type Forms. For now hidden behind GRIST_EXPERIMENTAL_PLUGINS(). This diff contains all the core moving parts as a serves as a base to extend this functionality further. Test Plan: New test added Reviewers: georgegevoian Reviewed By: georgegevoian Subscribers: paulfitz Differential Revision: https://phab.getgrist.com/D4130
12 lines
484 B
TypeScript
12 lines
484 B
TypeScript
/**
|
|
* Exposes utilities for getting the types information associated to each of the widget types.
|
|
*/
|
|
import {StringUnion} from "app/common/StringUnion";
|
|
|
|
// Custom widgets that are attached to "Add New" menu.
|
|
export const AttachedCustomWidgets = StringUnion('custom.calendar');
|
|
export type IAttachedCustomWidget = typeof AttachedCustomWidgets.type;
|
|
|
|
// all widget types
|
|
export type IWidgetType = 'record' | 'detail' | 'single' | 'chart' | 'custom' | 'form' | IAttachedCustomWidget;
|