@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
14 lines (13 loc) • 441 B
JavaScript
import { ApiBase } from '../Implementation/ApiBase';
export class CommentsInternalApi extends ApiBase {
areCommentsSupportedInLayout() {
if (this.getLayoutApi().isCurrentLayoutPivot()) {
return false;
}
return true;
}
getCommentsDateFormat() {
const dateFormat = this.getCommentOptions().dateFormat;
return typeof dateFormat === 'function' ? dateFormat() : dateFormat;
}
}