mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-20 01:02:22 +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
11 lines
373 B
TypeScript
11 lines
373 B
TypeScript
import {BoxModel, RenderContext} from 'app/client/components/Forms/Model';
|
|
import {makeTestId} from 'app/client/lib/domUtils';
|
|
import {primaryButton} from 'app/client/ui2018/buttons';
|
|
const testId = makeTestId('test-forms-');
|
|
|
|
export class SubmitModel extends BoxModel {
|
|
public render(context: RenderContext) {
|
|
return primaryButton('Submit', testId('submit'));
|
|
}
|
|
}
|