[fix] allow cell formatter
This commit is contained in:
parent
b8a407ab73
commit
55e35e140e
2
dist/frappe-datatable.cjs.js
vendored
2
dist/frappe-datatable.cjs.js
vendored
@ -2583,7 +2583,7 @@ class CellManager {
|
|||||||
const hasDropdown = isHeader && cell.dropdown !== false;
|
const hasDropdown = isHeader && cell.dropdown !== false;
|
||||||
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
|
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
|
||||||
|
|
||||||
const customFormatter = (cell.column && cell.column.format) || cell.format || null;
|
const customFormatter = cell.format || (cell.column && cell.column.format) || null;
|
||||||
|
|
||||||
let contentHTML;
|
let contentHTML;
|
||||||
if (isHeader || isFilter || !customFormatter) {
|
if (isHeader || isFilter || !customFormatter) {
|
||||||
|
|||||||
2
dist/frappe-datatable.js
vendored
2
dist/frappe-datatable.js
vendored
@ -2582,7 +2582,7 @@ class CellManager {
|
|||||||
const hasDropdown = isHeader && cell.dropdown !== false;
|
const hasDropdown = isHeader && cell.dropdown !== false;
|
||||||
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
|
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
|
||||||
|
|
||||||
const customFormatter = (cell.column && cell.column.format) || cell.format || null;
|
const customFormatter = cell.format || (cell.column && cell.column.format) || null;
|
||||||
|
|
||||||
let contentHTML;
|
let contentHTML;
|
||||||
if (isHeader || isFilter || !customFormatter) {
|
if (isHeader || isFilter || !customFormatter) {
|
||||||
|
|||||||
@ -2582,7 +2582,7 @@ class CellManager {
|
|||||||
const hasDropdown = isHeader && cell.dropdown !== false;
|
const hasDropdown = isHeader && cell.dropdown !== false;
|
||||||
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
|
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
|
||||||
|
|
||||||
const customFormatter = (cell.column && cell.column.format) || cell.format || null;
|
const customFormatter = cell.format || (cell.column && cell.column.format) || null;
|
||||||
|
|
||||||
let contentHTML;
|
let contentHTML;
|
||||||
if (isHeader || isFilter || !customFormatter) {
|
if (isHeader || isFilter || !customFormatter) {
|
||||||
|
|||||||
@ -695,7 +695,7 @@ export default class CellManager {
|
|||||||
const hasDropdown = isHeader && cell.dropdown !== false;
|
const hasDropdown = isHeader && cell.dropdown !== false;
|
||||||
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
|
const dropdown = hasDropdown ? `<div class="data-table-dropdown">${getDropdownHTML()}</div>` : '';
|
||||||
|
|
||||||
const customFormatter = (cell.column && cell.column.format) || cell.format || null;
|
const customFormatter = cell.format || (cell.column && cell.column.format) || null;
|
||||||
|
|
||||||
let contentHTML;
|
let contentHTML;
|
||||||
if (isHeader || isFilter || !customFormatter) {
|
if (isHeader || isFilter || !customFormatter) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user