简体   繁体   English

Kendo Ui TabStrip 左右按钮禁用即时隐藏

[英]Kendo Ui TabStrip left and right button disable instant of hiding

I want to disable the left and right arrow key once reach the first li list and last li list.一旦到达第一个 li 列表和最后一个 li 列表,我想禁用左右箭头键。 Right now once I reach on last ul li list the right arrow is hidden but I want to disable the arrow instant of hiding because it shows space.现在,一旦我到达最后一个 ul li 列表,右箭头就被隐藏了,但我想禁用隐藏的箭头瞬间,因为它显示了空间。

I added if statement but its not working我添加了 if 语句,但它不起作用

Demo: https://dojo.telerik.com/@vishal14/UcaPEYoh演示: https://dojo.telerik.com/@vishal14/UcaPEYoh

I guess the problem is with your selector.我想问题出在你的选择器上。 Try the jQuery selector like this:尝试像这样的 jQuery 选择器:

if($('.k-button:visible').length > 0){
     $(this).css("opacity","0.2");    
} else{
     $(this).css("opacity","1");
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM