GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - peteringram0/vue-ip: IP Address input for VueJS 2.x

BranchesTags
Open more actions menu

Latest commit

 

History

17 Commits
17 Commits

Folders and files

NameName
Last commit message
Last commit date
dist
dist
 
 
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
_config.yml
_config.yml
 
 
index-dev.html
index-dev.html
 
 
index.html
index.html
 
 
index.js
index.js
 
 
package.json
package.json
 
 
webpack.base.config.js
webpack.base.config.js
 
 
webpack.dev.config.js
webpack.dev.config.js
 
 
webpack.prod.config.js
webpack.prod.config.js
 
 

Repository files navigation

Vue IP

A IP input component built for Vue 2.x

Demo

Demo

Install

$ yarn add vue-ip

Usage

import VueIp from 'VueIp';

new Vue({
    components: {
        VueIp
    },
    data() {
        return {
            ip: '127.0.0.1', // or null
            port: '8888', // or null
        };
    },
    methods: {
        
        /**
        * Will be called on changes to IP address or port 
        */
        change(ip, port, valid) {
            console.log(ip, port, valid);
        }
        
    },
    template: '<vue-ip :ip="ip" :port="port" :on-change="change" theme="material"></vue-ip>'
})

Supports

  • Pasting (with IP or with IP and port)
  • IP Validation
  • Optional material design theme
  • Optional Port
  • No sub dependencies

Props

Prop Type Options
on-change function Will be called when changes
ip string null or ip address '127.0.0.1'
port string null or '8080'
placeholder boolean will show a dummy ip address within the placeholder
theme string 'material' (material design themed)

License

MIT

Inspired by

lakb248

About

IP Address input for VueJS 2.x

peteringram0.github.io/vue-ip/

Topics

inputipmaterialmaterial-designvuejs2

Resources

Readme
Activity

Stars

24 stars

Watchers

2 watching

Forks

13 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.