Skip to content
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
Copy Markdown
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'

});