[英]Kendo UI Splitter getsize(), getPosition()
I am programming an webpage with Kendo UI which is customizable by the user. 我正在用Kendo UI编程一个可由用户自定义的网页。 Now I want to save the layout, so the server can send the user his last layout.
现在,我要保存布局,以便服务器可以向用户发送他的上一个布局。
I use the Kendo UI widget Splitter. 我使用Kendo UI小部件Splitter。 How do I get the position of the splitter.
我如何获得分离器的位置。 You can set the size of the panes with the methode called size(), but how do I get the value.
您可以使用名为size()的方法来设置窗格的大小,但是如何获得该值。
http://docs.telerik.com/kendo-ui/api/web/splitter#methods-size http://docs.telerik.com/kendo-ui/api/web/splitter#methods-size
$("#splitter").kendoSplitter();
var splitter = $("#splitter").data("kendoSplitter");
//use jquery & target ids
console.log($('#paneA').width(), $('#paneB').width());
//use jquery and get all panes info
$('#splitter > .k-pane').each(function(id, item) {
console.log( $(item).html(), $(item).width() );
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.