Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Variable values and text #2285

Closed
balakaushik opened this issue Jul 5, 2015 · 2 comments
Closed

Template Variable values and text #2285

balakaushik opened this issue Jul 5, 2015 · 2 comments

Comments

@balakaushik
Copy link

Would appreciate if you can add something like the following to support user defined text for the tempalte variables with different value corresponding to the text rather than deriving the value from the text. In file public/app/features/templating/templateValueSrv.js in the _updateNonQueryVariable function:
// if the options are specified then use it
if (variable.options) {
if (variable.includeAll) {
self.addAllOption(variable);
}
return variable.options;
} else {
// extract options in comma seperated string
variable.options = _.map(variable.query.split(/[,]+/), function (text) {
return { text: text.trim(), value: text.trim() };
});
}

@torkelo
Copy link
Member

torkelo commented Jul 6, 2015

Maybe for the custom variable type.

@torkelo
Copy link
Member

torkelo commented Jul 6, 2015

#1032

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants