Permalink
Browse files

feat(checkbox): add label attribute binding

  • Loading branch information...
ZHollingshead committed Apr 14, 2017
1 parent 6367b16 commit c989f323cec585c939f2cf174698252633557217
Showing with 2 additions and 1 deletion.
  1. +1 −1 src/checkbox/ux-checkbox.html
  2. +1 −0 src/checkbox/ux-checkbox.ts
@@ -13,5 +13,5 @@
</div>
<!-- Leave Inline, uses :not(:empty) selector to determine margin -->
- <label ref="label"><slot></slot></label>
+ <label><slot>${label}</slot></label>
</template>
@@ -12,6 +12,7 @@ import { processDesignAttributes } from '../designs/design-attributes';
export class UxCheckbox implements Themable {
@bindable public disabled: any = null;
@bindable public effect = null;
+ @bindable public label: string;
@bindable public matcher = (a: any, b: any) => a === b;
@bindable public model: any;
@bindable public tabindex = 0;

0 comments on commit c989f32

Please sign in to comment.