autocomplete for attribute names, issue #31

This commit is contained in:
azivner
2018-02-04 19:27:27 -05:00
parent bc4aa3e40a
commit a3b31fab54
6 changed files with 47 additions and 12 deletions

View File

@@ -400,7 +400,7 @@
<tr>
<td data-bind="text: attributeId"></td>
<td>
<input type="text" data-bind="value: name, event: { change: $parent.attributeChanged }"/>
<input type="text" class="attribute-name" data-bind="value: name, event: { change: $parent.attributeChanged }"/>
<div style="color: red" data-bind="if: $parent.isNotUnique($index())">Attribute name must be unique per note.</div>
<div style="color: red" data-bind="if: $parent.isEmptyName($index())">Attribute name can't be empty.</div>