@adaptabletools/adaptable-cjs
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
18 lines (17 loc) • 613 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CommentsInternalApi = void 0;
const ApiBase_1 = require("../Implementation/ApiBase");
class CommentsInternalApi extends ApiBase_1.ApiBase {
areCommentsSupportedInLayout() {
if (this.getLayoutApi().isCurrentLayoutPivot()) {
return false;
}
return true;
}
getCommentsDateFormat() {
const dateFormat = this.getCommentOptions().dateFormat;
return typeof dateFormat === 'function' ? dateFormat() : dateFormat;
}
}
exports.CommentsInternalApi = CommentsInternalApi;