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

Custom templates #180

Open
Evanion opened this issue May 2, 2016 · 5 comments
Open

Custom templates #180

Evanion opened this issue May 2, 2016 · 5 comments

Comments

@Evanion
Copy link

Evanion commented May 2, 2016

This is the closest packages I have found for server side forms, compared to angular-formly is for angular apps, But I was wondering if there is any easy way to create custom markup templates for the package ..

It would allow me to configure the package to use a specific markup template for a project...
since a project usually depends on a frontend framework like Bootstrap, foundation, or uikit.. It would be great if it was possible to just npm install this package, and a addon package for your frontend framework of choice, ad a option when bootrapping this package, and then just work with it as normal.

@ljharb
Copy link
Collaborator

ljharb commented May 2, 2016

You can construct your own widgets by following the same patterns the included widgets use.

@iBelieve
Copy link

iBelieve commented Aug 5, 2016

Something like forms.configure('bootstrap') would be nice as a way to use pre-configured templates for common frameworks.

@ljharb
Copy link
Collaborator

ljharb commented Aug 5, 2016

Which version of bootstrap? I wouldn't want to add the maintenance burden of having to update this module with every bootstrap version - and https://github.com/caolan/forms#bootstrap-compatible-output hopefully already documents how to get bootstrap to work.

@voxpelli
Copy link
Contributor

voxpelli commented Aug 6, 2016

Something like forms.use(require('forms-bootstrap')) would enable this without the added maintenance of any single maintainer

@Danita
Copy link

Danita commented Dec 10, 2019

I second this. I come from Symfony, using the excellent built-in forms and validator, and they just use a template for the widgets you can fully replace with whatever you want, instead of programmatically rendering them. You can just include the barest template possible and let the community to build specific templates for each UI framework.

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

5 participants