Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
font-weight: normal;
font-size: 12px;
}
/* Add a class to the section for full width */
.full-width {
width: 100%;
}
</style>
<link rel="stylesheet" href="./dist/frappe-datatable.css" />
</head>
Expand All @@ -30,10 +34,13 @@ <h1>Frappe DataTable</h1>
<input type="checkbox" id="dark-theme" />
<span>Dark Theme</span>
</label>
<section style="width: 60%; margin: 0 auto;">

<!-- Add the 'full-width' class to the sections -->
<section class="full-width">

</section>


<section id="datatable2" style="width: 60%; ">

</section>
Expand Down Expand Up @@ -180,7 +187,7 @@ <h1>Frappe DataTable</h1>
console.log('No of Rows:', data.length)

const start = performance.now();
var datatable = new DataTable('section', {
var datatable = new DataTable('.full-width', {
checkboxColumn: true,
serialNoColumn: true,
layout: 'fluid',
Expand Down