UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

48 lines (47 loc) 1.34 kB
/** * DevExtreme (esm/__internal/scheduler/r1/components/base/cell.js) * Version: 24.2.7 * Build date: Mon Apr 28 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { createVNode } from "inferno"; import { BaseInfernoComponent } from "@devextreme/runtime/inferno"; import { renderUtils } from "../../utils/index"; export const CellBaseDefaultProps = { className: "", isFirstGroupCell: false, isLastGroupCell: false, startDate: new Date, endDate: new Date, allDay: false, text: "", index: 0, contentTemplateProps: { data: {}, index: 0 } }; export class CellBase extends BaseInfernoComponent { render() { const { className: className, isFirstGroupCell: isFirstGroupCell, isLastGroupCell: isLastGroupCell, children: children, ariaLabel: ariaLabel } = this.props; const classes = renderUtils.getGroupCellClasses(isFirstGroupCell, isLastGroupCell, className); return createVNode(1, "td", classes, children, 0, { "aria-label": ariaLabel }) } } CellBase.defaultProps = CellBaseDefaultProps;