MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / FormInputSQL

Function FormInputSQL

web/pgadmin/static/js/components/FormComponents.jsx:228–239  ·  view source on GitHub ↗
({ hasError, required, label, className, helpMessage, testcid, value, controlProps, noLabel, ...props })

Source from the content-addressed store, hash-verified

226};
227
228export function FormInputSQL({ hasError, required, label, className, helpMessage, testcid, value, controlProps, noLabel, ...props }) {
229 if (noLabel) {
230 return <InputSQL value={value} options={controlProps} {...props} />;
231 } else {
232 const lid = _.uniqueId('l');
233 return (
234 <FormInput required={required} label={label} error={hasError} className={className} helpMessage={helpMessage} testcid={testcid} lid={lid}>
235 <InputSQL value={value} options={controlProps} labelledBy={lid} {...props} />
236 </FormInput>
237 );
238 }
239}
240FormInputSQL.propTypes = {
241 hasError: PropTypes.bool,
242 required: PropTypes.bool,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected