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

Add template, label & input classes, and placeholder options #31

Merged
merged 1 commit into from
Feb 27, 2015

Conversation

todda00
Copy link
Contributor

@todda00 todda00 commented Jan 26, 2015

PR to add some additional autoform options:

Usage

In the #afModal you can add the following options:

template

Can use any template string that autoform accepts. For example:

template='bootstrap3-horizontal'

labelClass

Defines a bootstrap class for use when the horizontal class is used, how many columns should the label take? For example:

labelClass='col-sm-3'

inputColClass

Defines a bootstrap class for use when the horizontal class is used, how many columns should the input take? For example:

inputColClass='col-sm-9'

placeholder

Set to true if you wish to use the schema label for the input placeholder.

placeholder=true

@todda00
Copy link
Contributor Author

todda00 commented Jan 26, 2015

Might remove the placeholder option, as the only way to remove the normal label would be to remove it for all elements, then there would not be any label for non text field inputs.

mpowaga added a commit that referenced this pull request Feb 27, 2015
Add template, label & input classes, and placeholder options
@mpowaga mpowaga merged commit b541f28 into yogiben:master Feb 27, 2015
@mpowaga
Copy link
Collaborator

mpowaga commented Feb 27, 2015

@todda00 Many thanks for this PR and sorry for late response.

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

Successfully merging this pull request may close these issues.

2 participants