Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
feat(associationSelect): add disabled as bindable
  • Loading branch information
jeremyvergnas committed Jan 17, 2017
1 parent 6f3ced0 commit 44d9efa5196bd80ef7e81e5ef2470dc8fb3fec62
Showing with 3 additions and 1 deletion.
  1. +1 −1 src/component/association-select.html
  2. +2 −0 src/component/association-select.js
@@ -1,5 +1,5 @@
<template>
<select class="form-control" value.bind="value" multiple.bind="multiple">
<select class="form-control" value.bind="value" multiple.bind="multiple" disabled.bind="disabled">
<option selected disabled.bind="!hidePlaceholder && !selectablePlaceholder" value.bind="placeholderValue" show.bind="!hidePlaceholder" t="[html]${placeholderText || '- Select a value -'}">${placeholderText || '- Select a value -'}</option>
<option model.bind="option.id" repeat.for="option of options">${option[property]}</option>
</select>
@@ -35,6 +35,8 @@ export class AssociationSelect {

@bindable placeholderValue = 0;

@bindable disabled = false;

@bindable placeholderText;

ownMeta;

0 comments on commit 44d9efa

Please sign in to comment.