Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{% Options for the option_list filter %}
<!-- Default, no options -->
{{ settings.countries | option_list }}
<!-- With empty prompt -->
{{ settings.countries | option_list: prompt: true }}
<!-- With selected -->
{{ settings.countries | option_list: selected: 'BR' }}
<!-- With default, will be displayed on top of list -->
{{ settings.countries | option_list: default: 'BR, US, NO' }}
<!-- Multiple options -->
{{ settings.countries | option_list: default: 'BR, US, NO', selected: 'BR', prompt: true }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.