MVC_CRUD/Scripts/datatable/extensions/Select/examples/initialisation/single.html
(开头部分) 18KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="shortcut icon" type="image/ico" href="http://www.datatables.net/favicon.ico">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=2.0">
<title>Select example - Single item selection</title>
<link rel="stylesheet" type="text/css" href="../../../../media/css/jquery.dataTables.css">
<link rel="stylesheet" type="text/css" href="../../css/select.dataTables.css">
<link rel="stylesheet" type="text/css" href="../../../../examples/resources/syntax/shCore.css">
<link rel="stylesheet" type="text/css" href="../../../../examples/resources/demo.css">
<style type="text/css" class="init">
</style>
<script type="text/javascript" language="javascript" src="//code.jquery.com/jquery-1.12.4.js">
</script>
<script type="text/javascript" language="javascript" src="../../../../media/js/jquery.dataTables.js">
</script>
<script type="text/javascript" language="javascript" src="../../js/dataTables.select.js">
</script>
<script type="text/javascript" language="javascript" src="../../../../examples/resources/syntax/shCore.js">
</script>
<script type="text/javascript" language="javascript" src="../../../../examples/resources/demo.js">
</script>
<script type="text/javascript" language="javascript" class="init">
$(document).ready(function() {
$('#example').DataTable( {
select: {
style: 'single'
}
} );
} );
</script>
</head>
<body class="dt-example">
<div class="container">
<section>
<h1>Select example <span>Single item selection</span></h1>
<div class="info">
<p>The <a href="//datatables.net/reference/option/select.style"><code class="option" title="Select initialisation option">select.style</code></a> option provides
the ability to control how items are selected in the table. It is a string that can be used with one of the following options:</p>
<ul class="markdown">
<li><code class="string" title="String">api</code> - Selection can only be performed via the API</li>
<li><code class="string" title="String">single</code> - Only a single item can be selected, any other selected items will be automatically deselected when a
new item is selected</li>
<li><code class="string" title="String">multi</code> - Multiple items can be selected. Selection is performed by simply clicking on the items to be
selected</li>
<li><code class="string" title="String">os</code> - <em>Operating System</em> (OS) style selection. This is the most comprehensive option and provides complex
behaviours such as ctrl/cmd clicking to select / deselect individual items, shift clicking to select ranges and an unmodified click to select a single
item.</li>
</ul>
<p>This example shows the <code class="string" title="String">single</code> option.</p>
</div>
<div class="demo-html"></div>
后面还有 630 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
