mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
submit buttons are availble in the widget inspector (#4932)
This commit is contained in:
parent
f9ae9e9ac4
commit
8b467026d9
2 changed files with 16 additions and 12 deletions
|
|
@ -5,18 +5,18 @@ import { renderElement } from '../Utils';
|
|||
// eslint-disable-next-line import/no-unresolved
|
||||
import i18next from 'i18next';
|
||||
|
||||
export const Form = ({ componentMeta, darkMode, ...restProps }) => {
|
||||
const {
|
||||
layoutPropertyChanged,
|
||||
component,
|
||||
paramUpdated,
|
||||
dataQueries,
|
||||
currentState,
|
||||
eventsChanged,
|
||||
apps,
|
||||
allComponents,
|
||||
} = restProps;
|
||||
|
||||
export const Form = ({
|
||||
componentMeta,
|
||||
darkMode,
|
||||
layoutPropertyChanged,
|
||||
component,
|
||||
paramUpdated,
|
||||
dataQueries,
|
||||
currentState,
|
||||
eventsChanged,
|
||||
apps,
|
||||
allComponents,
|
||||
}) => {
|
||||
const properties = Object.keys(componentMeta.properties);
|
||||
const events = Object.keys(componentMeta.events);
|
||||
const validations = Object.keys(componentMeta.validation || {});
|
||||
|
|
|
|||
|
|
@ -332,6 +332,7 @@ export const Inspector = ({
|
|||
eventsChanged={eventsChanged}
|
||||
apps={apps}
|
||||
pages={pages}
|
||||
allComponents={allComponents}
|
||||
/>
|
||||
)}
|
||||
</Tab>
|
||||
|
|
@ -483,6 +484,9 @@ const GetAccordion = React.memo(
|
|||
case 'Icon':
|
||||
return <Icon {...restProps} />;
|
||||
|
||||
case 'Form':
|
||||
return <Form {...restProps} />;
|
||||
|
||||
default: {
|
||||
return <DefaultComponent {...restProps} />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue