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

Form layout #73

Open
pouya-eghbali opened this issue May 13, 2019 · 1 comment
Open

Form layout #73

pouya-eghbali opened this issue May 13, 2019 · 1 comment

Comments

@pouya-eghbali
Copy link

Currently we're making a .row for all fields and applying .s12 to all of them. I have a meteor package to fix this and add some extra functionality, for example grouping fields, adding a title for groups, defining field and field group orders and field size (width).

Here's how you can define any of these options, in your schema:

const schema = new SimpleSchema ({
    fieldName: {
        type: fieldType,
        autoform: {
            group: "group-identifier",
            groupTitle: "title of the group",
            groupHelp: "help text",
            order: 0,
            groupOrder: 0,
            size: "m6 s12"
        }
    }
})

This works very well in my projects, but the implementation isn't perfect. However, after reading the source code of your package I realised how easy it is to implement this feature in the package, so I locally implemented it and the result is really nice. I'd like to know if we can put this functionality in your package or should I maintain my own fork of the package?

@mozfet
Copy link
Owner

mozfet commented May 13, 2019 via email

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