<script type="text/javascript">
$(function(){
var pan1 = new Ext.Panel({
el: "pan-1",
width: 320,
height: 120,
collapsible: true,
titleCollapse: true,
collapsible: true,
autoShow: true,
});
var pan2 = new Ext.Panel({
el: "pan-2",
width: 320,
height: 120,
collapsed: true,
collapsible: true,
titleCollapse: true,
hideCollapseTool: true,
autoShow: true
});
pan1.render();
pan2.render();
});
</script>
<div id="pan-1" class="x-hidden">
<div class="x-panel-header">タイトル</div>
<div class="x-panel-body">
メッセージ<br/>メッセージ
</div>
</div>
<div id="pan-2" class="x-hidden">
<div class="x-panel-header">タイトル2</div>
<div class="x-panel-body">
メッセージ2<br/>メッセージ2
</div>
</div>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta http-equiv="Content-Script-Type" content="text/javascript"/>
<meta http-equiv="Content-Style-Type" content="text/css"/>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.2");</script>
<script type="text/javascript" src="../../js/ext-base.js"></script>
<script type="text/javascript" src="../../js/ext-all.js"></script>
<link rel="stylesheet" type="text/css" href="../../css/ext-all.css"/>
<script type="text/javascript">
$(function(){
var win = new Ext.Window({
title: 'タイトル',
html: 'メッセージ<br/>メッセージメッセージメッセージメッセージ',
autoWidth: true,
height: 300,
closeAction: "hide",
layout:'fit'
});
$('#btnOpenWindow').toggle(
function() {
win.isVisible() ? win.hide(this) : win.show(this);
},
function() {
win.isVisible() ? win.hide(this) : win.show(this);
}
);
});
</script>
<title></title>
</head>
<body>
<input type="button" id="btnOpenWindow" value="テスト"/>
</body>
</html>
win.isVisible() ? win.hide(this) : win.show(this);
win.setVisible(!win.isVisible());
"Quid Pro Quo" principle (共存共栄の原理) に基づき、もしオープンソースライセンスの下でアプリケーションをリリースせずに利益を得ようとするなら、適正な数の商用ライセンスをExt Japanから購入しなくてはなりません。商用ライセンスを購入することにより、ソースコードを開示する義務はなくなります。
1人の開発者がExt JSをインストールして利用できます。開発するワークステーション数、Ext JSを配置するサーバー数、ドメイン数の制限はありません。
商用ライセンス (すべてのソースコードを含む) 34,800円
商用ライセンス + シルバーサポート (15%オフ) 65,800円
js/ext-all.js
js/ext-base.js
css/ext-all.css
images/default/
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">google.load("jquery", "1.2");</script>