import WidgetQueryGeneratorForm from "components/editorComponents/WidgetQueryGeneratorForm"; import React from "react"; import type { ControlProps } from "./BaseControl"; import BaseControl from "./BaseControl"; class OneClickBindingControl extends BaseControl { constructor(props: OneClickBindingControlProps) { super(props); } static getControlType() { return "ONE_CLICK_BINDING_CONTROL"; } public onUpdatePropertyValue(value: string) { this.props.onPropertyChange?.(this.props.propertyName, value, false, true); } public render() { return ( this.onUpdatePropertyValue(value)} propertyPath={this.props.propertyName} /> ); } } export default OneClickBindingControl; export type OneClickBindingControlProps = ControlProps;