我正在努力在项目中添加jspanel插件,有没有办法以最小化模式打开jspanel,我发现了一些与question相关的内容,但找不到正确的答案,这是示例代码
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jspanel3/3.10.0/jquery.jspanel.css">
<script src="https://code.jquery.com/jquery-3.2.1.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui-touch-punch/0.2.3/jquery.ui.touch-punch.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspanel3/3.10.0/jquery.jspanel-compiled.js"></script>
</head>
<body>
<script type="text/javascript">
function clickToOpen() {
$.jsPanel({
position: "left",
size: {width: 120, height: 270},
overflow: {vertical: 'scroll'},
theme: "light",
});
}
</script>
<input type="button" value="click to open" onclick="clickToOpen()"></input>
</body>
</html>
最佳答案
版本4的样本:
jsPanel.create({
content: "<p>minimized</p>",
theme: 'info',
position: "left-top",
setStatus: 'minimized'
});
关于javascript - 以最小化模式打开jspanel,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47411449/