mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-19 16:02:01 +00:00
0aad09a4ed
Summary: Forms improvements and following new design - New headers - New UI - New right panel options Test Plan: Tests updated Reviewers: georgegevoian, dsagal Reviewed By: georgegevoian Subscribers: dsagal, paulfitz Differential Revision: https://phab.getgrist.com/D4158
21 lines
662 B
TypeScript
21 lines
662 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;
|
|
export enum WidgetType {
|
|
Table = 'record',
|
|
Card = 'single',
|
|
CardList = 'detail',
|
|
Chart = 'chart',
|
|
Custom = 'custom',
|
|
Form = 'form',
|
|
Calendar = 'custom.calendar',
|
|
}
|