# 🔍 Find Telco

Selecting your Telco and then inputting your phone number can be Aaargh! because i need to keep checking
which TSP(Telecommunication Service Provider) owns '0903', '0803' etc. With this component, it can auto-detect the
Telco for the user, win win.

![GIF](https://res.cloudinary.com/pbaba/image/upload/v1577031557/Screen_Recording_2019-12-22_at_3.50.07_AM_yvb4ao.gif)

# ✇ Usage

```
npm i --save vue-find-telco
```

```js
import FindTelco from "vue-find-telco";
Vue.component("find-telco", FindTelco);
```

```html
<find-telco placeHolder="Enter your phone number" :inputStyle="myStyle">
</find-telco>
```

## Props

### `placeHolder: {String}`

Defaults to 'Enter your Phone Number'. This is the text you want in the textbox.

### `inputStyle: {Object}`

This is the default styling for the textbox. You can modify this with this prop. <br>

Defaults to: <br>

```js
{
    "max-width": "50%",
    padding: "5% 15%",
    "font-size": "2rem",
    "text-align": "center",
    border: "1px solid #eda900"
}
```

## Events
To get the value of the Telco for use in your code, listen for the ***find-telco*** event, which emits the telco found from this component.

```html
<find-telco v-on:find-telco="showTelco($event)"></find-telco>

<script>
export default {
    methods:{
        showTelco(e) {
            console.log(e) // Shows name of Telco
        }
    }
}
</script>
```
