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

Commit

Permalink
feat(component): add form-button
Browse files Browse the repository at this point in the history
  • Loading branch information
RWOverdijk committed Feb 13, 2017
1 parent 26cd1ab commit ca0c4ae
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/component/form-button.js
@@ -0,0 +1,16 @@
import {bindable, customElement} from 'aurelia-framework';
import {resolvedView} from 'aurelia-view-manager';

@resolvedView('spoonx/form', 'form-button')
@customElement('form-button')
export class FormButton {
@bindable label = null;

@bindable type = 'submit';

@bindable classes = '';

@bindable disabled = false;

@bindable options = {};
}
9 changes: 9 additions & 0 deletions src/component/view/bootstrap/form-button.html
@@ -0,0 +1,9 @@
<template>
<button
class="btn ${classes}"
prefixed="options.bind: options; prefix: btn-"
type.bind="type"
disabled.bind="disabled"
t.bind="label"
>${label}</button>
</template>

0 comments on commit ca0c4ae

Please sign in to comment.