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

dynamic create tabs in form been invisible or unrespondable. #861

Closed
hawkxu opened this issue Apr 11, 2015 · 1 comment
Closed

dynamic create tabs in form been invisible or unrespondable. #861

hawkxu opened this issue Apr 11, 2015 · 1 comment

Comments

@hawkxu
Copy link
Contributor

hawkxu commented Apr 11, 2015

If the tabs create after the parent form, then the tabs been invisible.
If the tabs create before the parent form, then the tabs been unrespondable.

please look at: http://jsfiddle.net/zgcxfmnq/3/

@vitmalina
Copy link
Owner

Neither of two is a correct way. Once the form is displayed in a container, you should not mess with the container content, as form will rewrite it as necessary. You could put tabs in a different container and then hook it to what you needed in the form (similar to your way #1). But better way would be to use tabs property of the form. See http://w2ui.com/web/docs/w2form.tabs.

Once form has created tabs, you can get its object and modify it. It will be in form.tabs property or in w2ui object.

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