
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
vue-tel-input
Advanced tools
International Telephone Input Boilerplate with Vue ((integrated with VueFormGenerator).
Checkout Demo at Codesandbox.
npm install --save vue-tel-input
As a standalone component:
Import vue-tel-input
into your Vue component and use as a normal component:
<template>
...
<tel-input></tel-input>
...
<template>
<script>
import TelInput from '../vue-tel-input';
export default {
...
components: {
TelInput
},
};
</script>
As a field of VueFormGenerator
Register vue-tel-input
as a global component:
import vueTelInput from "../vue-tel-input.vue";
...
Vue.component("fieldTelephone", vueTelInput);
!! As the naming convention for custom field in VueFormGenerator, you need to put the name of the component as: `field.
Now you can you it in your schema:
var schema: {
fields: [{
type: "telephone",
label: "Phone Number",
model: "phone"
}]
};
For more info: vue-form-generator/custom-fields
npm install # install dependencies
npm run dev # serve with hot reload at localhost:8080
npm run build # build for production with minification
npm run build --report # build for production and view the bundle analyzer report
npm run unit # run unit tests
npm test # run all tests
made with ❤ by Steven.
FAQs
International Telephone Input with Vue
The npm package vue-tel-input receives a total of 83,747 weekly downloads. As such, vue-tel-input popularity was classified as popular.
We found that vue-tel-input demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.