Add read-only mode to map and array editors
This commit is contained in:
parent
8a4c19dd17
commit
46bfac7540
13 changed files with 174 additions and 79 deletions
|
@ -1,4 +1,11 @@
|
|||
<div class="{{@wrapper-classes}}">
|
||||
{{#if @readonly}}
|
||||
<ul>
|
||||
{{#each this.args.list as |element|}}
|
||||
<p class="{{@readonly-element-classes}}">{{element.value}}</p>
|
||||
{{/each}}
|
||||
</ul>
|
||||
{{else}}
|
||||
<ul>
|
||||
{{#each this.args.list as |element index|}}
|
||||
<li>
|
||||
|
@ -27,4 +34,5 @@
|
|||
>
|
||||
Add element
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue