This commit is contained in:
Faris Ansari 2018-04-04 16:48:11 +05:30
commit b8a407ab73
6 changed files with 15 additions and 8 deletions

2
.gitignore vendored
View File

@ -32,3 +32,5 @@ node_modules
# npm debug logs
npm-debug.log.*
.DS_Store

View File

@ -1,6 +1,11 @@
# Frappé DataTable
A modern datatable library for the web
<div align="center">
<img src="https://github.com/frappe/design/blob/master/logos/data-table-logo.svg" height="128">
<h2>Frappe DataTables</h2>
<p align="center">
<p>
A modern datatable library for the web
</p>
</div>
## Features
@ -31,4 +36,4 @@ var grid = new DataTable(document.querySelector('#data-table'), {
## License
MIT
MIT

View File

@ -2583,7 +2583,7 @@ class CellManager {
const hasDropdown = isHeader && cell.dropdown !== false;
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
const customFormatter = cell.column.format || cell.format || null;
const customFormatter = (cell.column && cell.column.format) || cell.format || null;
let contentHTML;
if (isHeader || isFilter || !customFormatter) {

View File

@ -2582,7 +2582,7 @@ class CellManager {
const hasDropdown = isHeader && cell.dropdown !== false;
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
const customFormatter = cell.column.format || cell.format || null;
const customFormatter = (cell.column && cell.column.format) || cell.format || null;
let contentHTML;
if (isHeader || isFilter || !customFormatter) {

View File

@ -2582,7 +2582,7 @@ class CellManager {
const hasDropdown = isHeader && cell.dropdown !== false;
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
const customFormatter = cell.column.format || cell.format || null;
const customFormatter = (cell.column && cell.column.format) || cell.format || null;
let contentHTML;
if (isHeader || isFilter || !customFormatter) {

View File

@ -695,7 +695,7 @@ export default class CellManager {
const hasDropdown = isHeader && cell.dropdown !== false;
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
const customFormatter = cell.column.format || cell.format || null;
const customFormatter = (cell.column && cell.column.format) || cell.format || null;
let contentHTML;
if (isHeader || isFilter || !customFormatter) {