You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.7 KiB
40 lines
1.7 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Tooltip as Toolbar - jQuery EasyUI Demo</title>
|
|
<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
|
|
<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
|
|
<link rel="stylesheet" type="text/css" href="../demo.css">
|
|
<script type="text/javascript" src="../../jquery.min.js"></script>
|
|
<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<h2>Tooltip as Toolbar</h2>
|
|
<p>This sample shows how to create a tooltip style toolbar.</p>
|
|
<div style="margin:20px 0;"></div>
|
|
<div style="padding:10px 200px">
|
|
<p><a id="dd" href="javascript:void(0)" class="easyui-tooltip" data-options="
|
|
hideEvent: 'none',
|
|
content: function(){
|
|
return $('#toolbar');
|
|
},
|
|
onShow: function(){
|
|
var t = $(this);
|
|
t.tooltip('tip').focus().unbind().bind('blur',function(){
|
|
t.tooltip('hide');
|
|
});
|
|
}
|
|
">Hover me</a> to display toolbar.</p>
|
|
</div>
|
|
<div style="display:none">
|
|
<div id="toolbar">
|
|
<a href="#" class="easyui-linkbutton easyui-tooltip" title="Add" data-options="iconCls:'icon-add',plain:true"></a>
|
|
<a href="#" class="easyui-linkbutton easyui-tooltip" title="Cut" data-options="iconCls:'icon-cut',plain:true"></a>
|
|
<a href="#" class="easyui-linkbutton easyui-tooltip" title="Remove" data-options="iconCls:'icon-remove',plain:true"></a>
|
|
<a href="#" class="easyui-linkbutton easyui-tooltip" title="Undo" data-options="iconCls:'icon-undo',plain:true"></a>
|
|
<a href="#" class="easyui-linkbutton easyui-tooltip" title="Redo" data-options="iconCls:'icon-redo',plain:true"></a>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|