GithubHelp home page GithubHelp logo

Comments (3)

johnculviner avatar johnculviner commented on June 16, 2024

Currently there is not. You can see it being done here (so it'd be easy enough for you to manually remove in the short term)

https://github.com/AngularAgility/AngularAgility/blob/master/src/aa.formExtensions.js#L354

I was just thinking about it: maybe there should be some sort of "ngModelBehaviors" that allows people to tack on (or remove in your case) functionality related to fields. So by default it would include onSubmitAttempt functionality, blur functionality, dirty handling etc. but you could simply remove the key on the ngModelBehaviors object to disable it completely (or replace it with your own implementation). Thoughts?

from angularagility.

jimthedev avatar jimthedev commented on June 16, 2024

Cool, thanks for the link!

Yeah, I like the idea of being able to have behavior sets that come out of the box but can also be redefined if needed. I'm not familiar enough with the project to speak about actual implementation but I can see a further need given that I'd love to eventually use this with ionicframework which would have further functionality tweaks needed since it would be primarily on mobile.

It'd be neat if I could define default behavior maps in the config but still override those on a per input field basis if needed (sort of like validation partials). The only problem I see with allow the amount of flexibility that I'm thinking about is that it seems like keeping the markup simple might become an issue.

from angularagility.

johnculviner avatar johnculviner commented on June 16, 2024

The provider model might save the day again in your situation and keep the code very simple (or at least simple for everyone else without you having to change the source code of the library). One of my co-workers added this to allow for different sizes of bootstrap form fields:

https://github.com/AngularAgility/AngularAgility/blob/master/src/aa.formExtensions.js#L912

I think the behaviors will be a really nice and missing extensibility point that makes things more flexible from that angle too.

from angularagility.

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.