From 5eb086d5306d3f3dde8ec0fe344a9fe9c67143db Mon Sep 17 00:00:00 2001 From: Joe Numainville Date: Fri, 10 May 2024 15:51:32 -0500 Subject: [PATCH] improve ui --- ...{ cookiecutter.__js_plugin_view_obj }}.tsx | 29 +++++++++---------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/templates/widget/{{ cookiecutter.python_project_name }}/src/js/src/{{ cookiecutter.__js_plugin_view_obj }}.tsx b/templates/widget/{{ cookiecutter.python_project_name }}/src/js/src/{{ cookiecutter.__js_plugin_view_obj }}.tsx index d0ff16958..81185fc92 100644 --- a/templates/widget/{{ cookiecutter.python_project_name }}/src/js/src/{{ cookiecutter.__js_plugin_view_obj }}.tsx +++ b/templates/widget/{{ cookiecutter.python_project_name }}/src/js/src/{{ cookiecutter.__js_plugin_view_obj }}.tsx @@ -3,6 +3,7 @@ import { useApi } from '@deephaven/jsapi-bootstrap'; import Log from '@deephaven/log'; import { WidgetComponentProps } from '@deephaven/plugin'; import type { Widget } from '@deephaven/jsapi-types'; +import { Button, TextArea } from '@deephaven/components'; const log = Log.module('{{ cookiecutter.javascript_project_name }}.{{ cookiecutter.__js_plugin_view_obj }}'); @@ -53,22 +54,20 @@ export function {{ cookiecutter.__js_plugin_view_obj }}(props: WidgetComponentPr
{text}
Send a message to the server:
-
- setFormText(e.target.value)} - /> - -
+ onChange={(value) => setFormText(value)} + marginBottom='size-50' + /> +
); }