Coder Social home page Coder Social logo

constant number in mask about ngmask HOT 9 OPEN

perython avatar perython commented on August 24, 2024
constant number in mask

from ngmask.

Comments (9)

candreoliveira avatar candreoliveira commented on August 24, 2024

Not yet. But I'm rewriting the mask to improve quality and I'll cover it. Thanks!

from ngmask.

LennyLip avatar LennyLip commented on August 24, 2024

+1 i need it

from ngmask.

drakmail avatar drakmail commented on August 24, 2024

+1 really need it for phone input

from ngmask.

resetko avatar resetko commented on August 24, 2024

+1 need it for country code for phone number ( for example +7 (999) 999-99-99 )

also it would be nice if i can set regexp for some part of mask, for example i need complex check of first part of number - only 910 and 920 ( +7 (910) XXX-XX-XX or +7 (920) XXX-XX-XX )

from ngmask.

drakmail avatar drakmail commented on August 24, 2024

As workaround I'm used bootstraps input group addon like this:

<div class="input-group">
  <span class="input-group-addon" id="basic-addon1">+7</span>
  <input type="text" class="form-control" placeholder="(___) ___ __ __"  ng-model="maskModel" mask="(999) 999 99 99">
</div>

from ngmask.

LennyLip avatar LennyLip commented on August 24, 2024

i think, we need not only constant, it can be list like a:
+(7,)
+(7,8)
+(2,7,8)

etc...

may be result of @candreoliveira rewriting proccess is replaced current mask syntax with "all known" regex syntax?

from ngmask.

resetko avatar resetko commented on August 24, 2024

@candreoliveira hi, is there any progress on this? Maybe someone else should implement this?

from ngmask.

drugoi avatar drugoi commented on August 24, 2024

Any progress on this?
@candreoliveira

from ngmask.

drakmail avatar drakmail commented on August 24, 2024

any progress? @candreoliveira

from ngmask.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.