open-consul/ui-v2/app/templates/components/code-editor.hbs

19 lines
317 B
Handlebars

{{ivy-codemirror
value=value
readonly=readonly
name=name
class=class
options=options
valueUpdated=(action onkeyup)
}}
{{#if (not syntax)}}
{{#power-select
onchange=(action onchange)
selected=mode
searchEnabled=false
options=modes as |mode|
}}
{{mode.name}}
{{/power-select}}
{{/if}}