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

8 lines
359 B
Handlebars

<IvyCodemirror @value={{value}} @name={{name}} @class={{class}} @options={{options}} @valueUpdated={{action onkeyup}} />
<pre><code>{{yield}}</code></pre>
{{#if (and (not readonly) (not syntax))}}
<PowerSelect @onchange={{action "change"}} @selected={{mode}} @searchEnabled={{false}} @options={{modes}} as |mode|>
{{mode.name}}
</PowerSelect>
{{/if}}