Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add ability to reinitialize #62

Merged
merged 1 commit into from
Feb 20, 2016
Merged

Add ability to reinitialize #62

merged 1 commit into from
Feb 20, 2016

Conversation

kevinchappell
Copy link
Owner

By popular demand, formBuilder can now be reinitialized by calling it again.

$('.fb-textarea').formBuilder();

screenshot from 2016-02-20 14-24-25

Then later:

var opts = {
              messages: {
                text: 'Cool Input'
              }
            };
$('.fb-textarea').formBuilder(opts);

screenshot from 2016-02-20 14-24-45

The second call can be made from an ajax or button click callback. With these options, when formBuilder rerenders the default label for text input will change from "Text field" to "Cool Input".

kevinchappell added a commit that referenced this pull request Feb 20, 2016
Add ability to reinitialize formBuilder
@kevinchappell kevinchappell merged commit 1e9cc9f into master Feb 20, 2016
@kevinchappell kevinchappell deleted the feature/reInit branch February 20, 2016 14:27
@yichingwu
Copy link

I found there are still some items can't be translated.
image

@kevinchappell
Copy link
Owner Author

@wudoz Fixed in #96

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants