Filter tile functionality
This commit is contained in:
31
src/components/FilterTile.vue
Normal file
31
src/components/FilterTile.vue
Normal file
@@ -0,0 +1,31 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-input
|
||||
placeholder="Start typing station name or code"
|
||||
v-model="input"
|
||||
v-on:input="userIsTypingSomething">
|
||||
</el-input>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: 'FilterTile',
|
||||
data () {
|
||||
return {
|
||||
input: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
userIsTypingSomething (stuff) {
|
||||
this.$emit('user-is-searchin', stuff)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
||||
<style scoped lang="scss">
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user