Skip to content

Add environment variable support to EditableTables #10143

Closed Answered by brandonkelly
Mosnar asked this question in Ideas
Discussion options

You must be logged in to vote

Just added this for the next release (bf8b0a6).

There’s a new autosuggest column type which supports setting suggestEnvVars and suggestAliases keys to true on the column definition:

{{ forms.ediatbleTableField({
    staticRows: true,
    cols: {
        secretKey: {
             type: 'autosuggest',
             heading: 'Secret key'|t('plugin-handle'),
             suggestEnvVars: true,
        },
    },
}) }}

Also added support for suggestEnvVars + suggestAliases to the template column type.

Note that for both of these column types, autosuggestions will only work for rows that were included on the initial page load. So best reserved for editable tables where staticRows is set to true.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@brandonkelly
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants