Skip to content

Commit 27ec484

Browse files
feature: Adds default placeholders
This helps explain the logic to the user
1 parent 0f92629 commit 27ec484

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/VariableQueryEditor.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface VariableQueryProps {
1212
const refId = "variable";
1313

1414
export const VariableQueryEditor: React.FC<VariableQueryProps> = ({ onChange, query: variableQuery }) => {
15+
let variableInputWidth = 30;
1516
const [query, setState] = useState(variableQuery);
1617

1718
const saveQuery = () => {
@@ -79,14 +80,18 @@ export const VariableQueryEditor: React.FC<VariableQueryProps> = ({ onChange, qu
7980
/>
8081
<InlineField label="Column">
8182
<Input
83+
width={variableInputWidth}
8284
onChange={onColumnChange}
8385
value={query.column}
86+
placeholder="Defaults to 'id' or first column"
8487
/>
8588
</InlineField>
8689
<InlineField label="Display Column">
8790
<Input
91+
width={variableInputWidth}
8892
onChange={onDisplayColumnChange}
8993
value={query.displayColumn}
94+
placeholder="Defaults to 'Column'"
9095
/>
9196
</InlineField>
9297
</div>

0 commit comments

Comments
 (0)