Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to ipSegments $refs #5

Closed
jamie-kount opened this issue Jun 25, 2020 · 1 comment
Closed

Access to ipSegments $refs #5

jamie-kount opened this issue Jun 25, 2020 · 1 comment

Comments

@jamie-kount
Copy link

I am using vue-ip for an IP address range component where I need to verify the second ip address is greater than the first ip address. In order to do this, I need access to the segments within each ip address. Could this possibly be added as a parameter to the on-change event?

@peteringram0
Copy link
Owner

@jamie-kount the onChange event sends back the the IP. You can simply run a .split('.') against it to get it as an array then compare each segment or something similar?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants