2
我正在嘗試將Kendo UI模式窗口放在我的按鈕旁邊,它不工作。Kendo UI窗口相對於按鈕位置
這裏是我的按鈕,單擊代碼:
$('#button').click(function() {
var x = $("#button").offset().left;
var y = $("#button").offset().top;
window1 = $('#window1');
if (!window1.data("kendoWindow")) {
window1.kendoWindow({
actions: ["Refresh", "Close"],
width: "450px",
position: {
left: x,
top: y
},
title: "Window Title",
modal: true,
resizable: false
});
}
window1.show();
window1.data("kendoWindow").open();
});