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

Example config override for dummy app #49

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tests/dummy/app/services/fm-config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import FormMaster2000ConfigService from 'ember-form-master-2000/services/fm-config';

export default FormMaster2000ConfigService.extend({

// default config
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just want to flesh this out a bit so its crystal clear. Can you change to something like the following.

By default, form master uses the default classes for Bootstrap 3 style forms.  To
change this, extend the `fm-config` service and override the class names that you want.
For a list of the default classes see the base `fm-config` service in:

https://github.com/Emerson/ember-form-master-2000/blob/master/addon/services/fm-config.js

For example for semantic-ui style inputs you would include the following overrides:
formClass: 'ui form',
wrapperClass: 'field',
errorClass: 'error'

// https://github.com/Emerson/ember-form-master-2000/blob/master/addon/services/fm-config.js

// e.g. semantic-ui style overrides
// formClass: 'ui form',
// wrapperClass: 'field',
// errorClass: 'error'

});