jQuery UI Widgets › Forums › Vue › JxqTags make tab invisible
Tagged: hide and show specific JxqTabs
This topic contains 13 replies, has 2 voices, and was last updated by svetoslav_borislavov 10 months, 1 week ago.
-
Author
-
Hi,
I see there is the ensureVisible method but no ensureInvisible method?
What is the preferred way to make a JqxTag invisible?
Example
this.$refs.myTabs.ensureInvisible(5);
Thanks.
Hi,
Unfortunately, jqxTab does not have ensureInvisible.
If you need any additional help, feel free to ask!Best regards,
Svetoslav Borislavov
jQWidgets Team
https://www.jqwidgets.com/Hi Svetoslav,
Is there is no way, can you please consider this a feature request?
Thank you.
Hi Svetoslav,
Meanwhile, if there is a hack I can try please let me know.
Thank you.
Hi,
If you want to do something hacky you can get the index of the tab which you want to be invisible and make visible another tab which is far from it.
Best regards,
Svetoslav Borislavov
jQWidgets Team
https://www.jqwidgets.com/Hi Svetoslav,
Well, I guess when you ask for a hack you really get one ;).
Maybe I don’t fully understand but what then is the added value of the
this.$refs.myTabs.ensureVisible
method?Thanks.
Hi,
This is not recommended way because the tab you want to show depends on the width of the tabs` container and the width of each tab.
For example, if you want to hide the tab with index 1 and the width of the container is too small you will show the last tab, but the tab you want to hide may be visible.
I do not recommend you to use this, but you can try and see if it will work.
I will raise a question about adding the ensureInvisible method.Best regards,
Svetoslav Borislavov
jQWidgets Team
https://www.jqwidgets.com/- This reply was modified 10 months, 2 weeks ago by svetoslav_borislavov.
Hi Svetoslav,
Yikes, yeah not recommended :(.
If at all possible adding the
ensureInvisible
method really is the only way to go.Thank you.
Hi,
Yes, we will consider this method! If you need further assistance, please contact us!
Best regards,
Svetoslav Borislavov
jQWidgets Team
https://www.jqwidgets.com/Hi Svetoslav,
Ok, thanks for your communication.
How will I know when the method is available?
Thanks again
Hi,
We will discuss it and then if the method is added you will be informed here.
Best regards,
Svetoslav Borislavov
jQWidgets Team
https://www.jqwidgets.com/Hi Svetoslav,
Rest assured I will be watching like a hawk :).
Best regards.
Hi Svetoslav,
Perhaps to say differently, what I am looking for is a property and method to hide and show specific jqxTabs.
Best regards.
Hi,
Yes, I understood you want a method similar to ensureVisible. EnsureVisible will scroll if the selected tab is not visible. But you want a method that will scroll to any tab so to hide the selected tab. I told you that you can do it with some calculations. Try to do something because you should calculate depending on each tab’s width, the width of the tab’s container and the tabs count. This way you can choose to which tab to scroll
Best regards,
Svetoslav Borislavov
jQWidgets Team
https://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.