Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
chore(project): proxy attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Feb 21, 2017
1 parent 0567d27 commit 357bfa7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/component/aurelia-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@ export class AureliaForm {
@bindable classes = '';
@bindable validationController;
@bindable entity;
@bindable validated = true;
@bindable entity;
@bindable buttonOptions;
@bindable buttonLabel;
Expand All @@ -26,6 +24,8 @@ export class AureliaForm {
@children('form-group') formGroups = [];
validationController;
mapped = {};
element;
Expand Down
10 changes: 10 additions & 0 deletions src/component/entity-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@ export class EntityForm {

@bindable behavior;

@bindable classes;

@bindable skip = [];

@bindable validated = true;

@bindable buttonOptions;

@bindable buttonLabel;

@bindable buttonEnabled;

@computedFrom('entity')
get elements() {
let types = this.entity.getMeta().metadata.types;
Expand Down
5 changes: 5 additions & 0 deletions src/component/view/bootstrap/entity-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
<aurelia-form
behavior.bind="behavior"
entity.bind="entity"
classes.bind="classes"
validated.bind="validated"
buttonOptions.bind="buttonOptions"
buttonLabel.bind="buttonLabel"
buttonEnabled.bind="buttonEnabled"
>
<slot name="before"></slot>

Expand Down

0 comments on commit 357bfa7

Please sign in to comment.