-
Notifications
You must be signed in to change notification settings - Fork 102
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
Bootsfaces close tab in dynamic tab view #946
Comments
Dynamic tabs are populated from an array, so closing a tab is simple a matter of deleting the corresponding array entry. |
Can u please guide me which attribute i need to use for this in bootfaces . Hope i will be updated soon with bootsfaces . Thanks by the way bootsfaces is awesome |
Please show me a code snippet. I want to be sure we're talking about the same thing :). What does your JSF page look like, and which tab do you want to close? |
Sorry i dont have design currently with me . And in each tab forms will be added by ui:include |
Ok, got it. So what's the problem? You can simply delete the tab by deleting the corresponding element of the list. There's no native BootsFaces support because you don't need it. But you wouldn't ask if you didn't felt precisely that need. Let me guess: you want BootsFaces to draw a "close" icon in the tab, and you want BootsFaces to delete the array item if the "close" button has been clicked? |
Yes exactly the attribute for close . Iam not finding it on demo site . Whether we should use facet there on tab or any alternative . Thanks in advance |
…amically created tab
Oops - there seems to be a bug. Facets inside the tab don't "speak" AJAX yet. So the solution is a bit clumsy. Have a look at this commit, which adds a closable tab to our showcase. |
Thanks @stephanrauh |
…n a dynamic tab
Finished the documentation in the showcase. |
How to close the tab in bootsfaces tab view component . Gone through the demo site but no luck . Any suggestions how to achieve it .
The text was updated successfully, but these errors were encountered: