import-export - work with schema (mssql)

This commit is contained in:
Jan Prochazka
2020-06-18 09:38:08 +02:00
parent 759754c437
commit a9ce93cd67
11 changed files with 73 additions and 23 deletions

View File

@@ -4,6 +4,15 @@ export function TextField({ editorRef = undefined, ...other }) {
return <input type="text" {...other} ref={editorRef}></input>;
}
export function SelectField({ children, ...other }) {
return <select {...other}>{children}</select>;
export function SelectField({ children = null, options = [], ...other }) {
return (
<select {...other}>
{children}
{options.map((x) => (
<option value={x.value} key={x.value}>
{x.label}
</option>
))}
</select>
);
}