fire "selected" event when select changes #230

This commit is contained in:
Marcos Moura 2016-12-23 14:14:30 -02:00
parent 890d08d799
commit 9183c06c78
2 changed files with 2 additions and 1 deletions

View file

@ -72,7 +72,7 @@
<md-table-body>
<md-table-row>
<md-table-cell>selected</md-table-cell>
<md-table-cell>selected|change</md-table-cell>
<md-table-cell>Receives the value of the model</md-table-cell>
<md-table-cell>Triggered when the model changes.</md-table-cell>
</md-table-row>

View file

@ -136,6 +136,7 @@
changeValue(value) {
this.$emit('input', value);
this.$emit('change', value);
this.$emit('selected', value);
},
selectMultiple(index, value, text) {
let values = [];