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

Append widget classes to defaults #50

Open
utilityboy opened this issue Apr 14, 2016 · 1 comment
Open

Append widget classes to defaults #50

utilityboy opened this issue Apr 14, 2016 · 1 comment

Comments

@utilityboy
Copy link
Contributor

Given an fm-submit with default class of btn btn-primary it would be nice to be able to do the following:

{{fm-submit value='Submit' class='float-right'}}

and have it generate

<button type="submit" value="Submit" class="btn primary float-right">

Is there a way to do this through some other means?

@utilityboy utilityboy changed the title Classes on widgets should be appended to default classes Append widget classes to defaults Apr 14, 2016
@g-cassie
Copy link
Collaborator

@utilityboy You can hack around this right now with submitButtonClass='btn primary float-right' but I agree that is not ideal. Do any of bootstrap/semantic/etc. actually put a wrapper around a submit button. I think maybe fm-submit should render as a button with no wrapper. Then you could manipulate classes directly. Any thoughts @Emerson?

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