GithubHelp home page GithubHelp logo

Comments (2)

randallmeeker avatar randallmeeker commented on September 21, 2024

Or have we thought bout decoupling the html templates in general so that they can be customized for any one?

from angularagility.

johnculviner avatar johnculviner commented on September 21, 2024

@tlvince @randallmeeker: Good question, one of the top goals of the project is that nothing is required and you can customize everything. HTML templates were baked in from the start with the ability to do this. It's hinted at in the wiki documentation here:

https://github.com/AngularAgility/AngularAgility/wiki/Form-Extensions-API-Docs

But there is no specific example on the README.md page. Essentially you do this (and I've even done it with BS2 but don't have the code handy):

.config(function (aaFormExtensionsProvider) {
        //custom config as needed

        aaFormExtensionsProvider.defaultFieldGroupStrategy = "somethingdifferent";
        aaFormExtensionsProvider.fieldGroupStrategies.somethingdifferent = function(element) {
            //do something with the element
        };
    })

You can see all the set-able strategies here:
https://github.com/AngularAgility/AngularAgility/blob/master/src/formExtensions/provider.js

If either of you could come up with a few examples of things you think are useful and submit them as a PR either for README.MD or the wiki that would be great as I'm sure many people have the same question. Thanks!

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.