Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
- Include title into custom actions
- Add support to Number field type
  • Loading branch information
jesuslopezlugo committed Dec 7, 2017
1 parent c9a0dc0 commit 605e40d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pt-crud-table.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ <h2>[[title]]</h2>
<paper-icon-button icon="crudIcons:delete" on-tap="_delete" item="[[item]]"></paper-icon-button>

<template is="dom-repeat" items="[[customActions]]" as="action">
<paper-icon-button icon="[[action.icon]]" on-tap="_customEvent" event="[[action.event]]" item="[[item]]"></paper-icon-button>
<paper-icon-button title="[[action.title]]" icon="[[action.icon]]" on-tap="_customEvent" event="[[action.event]]" item="[[item]]"></paper-icon-button>
</template>
</div>
</template>
Expand Down Expand Up @@ -221,6 +221,12 @@ <h2>[[title]]</h2>
tempElement.type = field.inputType;
}
break;
case 'number':
tempElement = document.createElement("paper-input");
tempElement.type = "number";
tempElement.step = "0.01";
tempElement.label = field.label;
break;
case 'checkbox':
tempElement = document.createElement("paper-checkbox");
tempElement.innerHTML = field.label;
Expand Down

0 comments on commit 605e40d

Please sign in to comment.