in viz-lib/src/visualizations/table/columns/link.tsx [18:82]
function Editor({ column, onChange }: Props) {
const [onChangeDebounced] = useDebouncedCallback(onChange, 200);
return (
<React.Fragment>
{/* @ts-expect-error ts-migrate(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<Section>
<Input
label="URL template"
data-test="Table.ColumnEditor.Link.UrlTemplate"
defaultValue={column.linkUrlTemplate}
onChange={(event: any) => onChangeDebounced({ linkUrlTemplate: event.target.value })}
/>
</Section>
{/* @ts-expect-error ts-migrate(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<Section>
<Input
label="Text template"
data-test="Table.ColumnEditor.Link.TextTemplate"
defaultValue={column.linkTextTemplate}
onChange={(event: any) => onChangeDebounced({ linkTextTemplate: event.target.value })}
/>
</Section>
{/* @ts-expect-error ts-migrate(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<Section>
<Input
label="Title template"
data-test="Table.ColumnEditor.Link.TitleTemplate"
defaultValue={column.linkTitleTemplate}
onChange={(event: any) => onChangeDebounced({ linkTitleTemplate: event.target.value })}
/>
</Section>
{/* @ts-expect-error ts-migrate(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<Section>
<Checkbox
data-test="Table.ColumnEditor.Link.OpenInNewTab"
checked={column.linkOpenInNewTab}
onChange={event => onChange({ linkOpenInNewTab: event.target.checked })}>
Open in new tab
</Checkbox>
</Section>
{/* @ts-expect-error ts-migrate(2745) FIXME: This JSX tag's 'children' prop expects type 'never... Remove this comment to see the full error message */}
<Section>
{/* @ts-expect-error ts-migrate(2746) FIXME: This JSX tag's 'children' prop expects a single ch... Remove this comment to see the full error message */}
<ContextHelp
placement="topLeft"
arrowPointAtCenter
// @ts-expect-error ts-migrate(2322) FIXME: Type 'Element' is not assignable to type 'null | u... Remove this comment to see the full error message
icon={<span style={{ cursor: "default" }}>Format specs {ContextHelp.defaultIcon}</span>}>
<div>
All columns can be referenced using <code>{"{{ column_name }}"}</code> syntax.
</div>
<div>
Use <code>{"{{ @ }}"}</code> to reference current (this) column.
</div>
<div>This syntax is applicable to URL, Text and Title options.</div>
</ContextHelp>
</Section>
</React.Fragment>
);
}