Lines Matching refs:TD

6853   this.TD = td;
11986 this.TD = this.getEditedCell();
11989 if (!this.TD) {
11994 var currentOffset = (0, _element.offset)(this.TD),
11996 scrollableContainer = (0, _element.getScrollableElement)(this.TD),
12008 backgroundColor = this.TD.style.backgroundColor,
12055 var cellTopOffset = this.TD.offsetTop + firstRowOffset - verticalScrollPosition;
12056 var cellLeftOffset = this.TD.offsetLeft + firstColumnOffset - horizontalScrollPosition;
12058 var width = (0, _element.innerWidth)(this.TD) - 8;
12062 var height = this.TD.scrollHeight + 1;
12065 var cellComputedStyle = (0, _element.getComputedStyle)(this.TD);
25170 } else if (cell.TD) {
25172 that.instance.getSetting('onCellMouseDown', event, cell.coords, cell.TD, that.instance);
25178 if (cell.TD) {
25179 dblClickOrigin[0] = cell.TD;
25248 if (cell.TD === dblClickOrigin[0] && cell.TD === dblClickOrigin[1]) {
25250 … that.instance.getSetting('onCellCornerDblClick', event, cell.coords, cell.TD, that.instance);
25252 that.instance.getSetting('onCellDblClick', event, cell.coords, cell.TD, that.instance);
25257 } else if (cell.TD === dblClickOrigin[0]) {
25258 that.instance.getSetting('onCellMouseUp', event, cell.coords, cell.TD, that.instance);
25260 dblClickOrigin[1] = cell.TD;
25265 } else if (cell.TD && that.instance.hasSetting('onCellMouseUp')) {
25266 that.instance.getSetting('onCellMouseUp', event, cell.coords, cell.TD, that.instance);
25341 var TD = (0, _element.closestDown)(elem, ['TD', 'TH'], TABLE);
25343 if (TD) {
25344 cell.coords = this.instance.wtTable.getCoords(TD);
25345 cell.TD = TD;
25348 cell.TD = this.instance.wtTable.getCell(cell.coords);
25352 cell.TD = this.instance.wtTable.getCell(cell.coords);
26827 cellRenderer: function cellRenderer(row, column, TD) {
26830 (0, _element.fastInnerText)(TD, cellData === void 0 || cellData === null ? '' : cellData);
27427 value: function getCoords(TD) {
27428 if (TD.nodeName !== 'TD' && TD.nodeName !== 'TH') {
27429 TD = (0, _element.closest)(TD, ['TD', 'TH']);
27432 if (TD === null) {
27436 var TR = TD.parentNode;
27439 var col = TD.cellIndex;
27441 …)(_base2.default.CLONE_TOP_LEFT_CORNER, TD) || (0, _element.overlayContainsElement)(_base2.default…
27451 …)(_base2.default.CLONE_TOP_LEFT_CORNER, TD) || (0, _element.overlayContainsElement)(_base2.default…
28117 var TD = void 0;
28124TD = TR.childNodes[this.columnFilter.sourceColumnToVisibleRowHeadedColumn(sourceColIndex)];
28126 TD = TD.nextSibling; // http://jsperf.com/nextsibling-vs-indexed-childnodes
28129 if (TD.nodeName == 'TH') {
28130 TD = replaceThWithTd(TD, TR);
28132 if (!(0, _element.hasClass)(TD, 'hide')) {
28133 TD.className = '';
28135 TD.removeAttribute('style');
28136 this.wot.wtSettings.settings.cellRenderer(sourceRowIndex, sourceColIndex, TD);
28139 return TD;
28406 var TD = document.createElement('TD');
28408 TR.appendChild(TD);
28434 function replaceTdWithTh(TD, TR) {
28437 TR.insertBefore(TH, TD);
28438 TR.removeChild(TD);
28444 var TD = document.createElement('TD');
28446 TR.insertBefore(TD, TH);
28449 return TD;
29118 afterRenderer: function afterRenderer(TD, row, col, prop, value, cellProperties) {
29136 TD.innerHTML = value;
32921 var TD = wotInstance.wtTable.getCell(new _coords2.default(sourceRow, sourceColumn));
32923 if ((typeof TD === 'undefined' ? 'undefined' : _typeof(TD)) === 'object') {
32924 (0, _element.addClass)(TD, className);
34883 var checkbox = this.TD.querySelector('input[type="checkbox"]');
35135 var offset = this.TD.getBoundingClientRect();
35142 ….datePickerStyle.top = window.pageYOffset + offset.top + (0, _element.outerHeight)(this.TD) + 'px';
35923 this.TD = this.getEditedCell();
35926 if (!this.TD) {
35931 var width = (0, _element.outerWidth)(this.TD) + 1,
35932 height = (0, _element.outerHeight)(this.TD) + 1,
35933 currentOffset = (0, _element.offset)(this.TD),
35935 scrollableContainer = (0, _element.getScrollableElement)(this.TD),
35979 var cellComputedStyle = (0, _element.getComputedStyle)(this.TD);
37999 this.addHook('beforeOnCellMouseOver', function (event, coords, TD) {
39742 renderer: function renderer(hot, TD, row, col, prop, value) {
39743 return _this2.menuItemRenderer(hot, TD, row, col, prop, value);
39752 afterOnCellMouseOver: function afterOnCellMouseOver(event, coords, TD) {
40137 value: function menuItemRenderer(hot, TD, row, col, prop, value) {
40159 (0, _element.empty)(TD);
40162 TD.appendChild(wrapper);
40165 (0, _element.addClass)(TD, 'htSeparator');
40167 (0, _element.addClass)(TD, 'htCustomMenuRenderer');
40168 TD.appendChild(item.renderer(hot, wrapper, row, col, prop, value));
40173 (0, _element.addClass)(TD, 'htDisabled');
40174 this.eventManager.addEventListener(TD, 'mouseenter', function () {
40178 (0, _element.addClass)(TD, 'htSelectionDisabled');
40179 this.eventManager.addEventListener(TD, 'mouseenter', function () {
40183 (0, _element.addClass)(TD, 'htSubmenu');
40186 this.eventManager.addEventListener(TD, 'mouseenter', function () {
40190 this.eventManager.addEventListener(TD, 'mouseenter', function () {
40195 (0, _element.removeClass)(TD, 'htSubmenu');
40196 (0, _element.removeClass)(TD, 'htDisabled');
40199 this.eventManager.addEventListener(TD, 'mouseenter', function () {
40203 this.eventManager.addEventListener(TD, 'mouseenter', function () {
42758 TD: void 0,
42822 this.addHook('beforeOnCellMouseDown', function (event, coords, TD, blockCalculations) {
42823 return _this2.onBeforeOnCellMouseDown(event, coords, TD, blockCalculations);
42825 this.addHook('beforeOnCellMouseOver', function (event, coords, TD, blockCalculations) {
42826 return _this2.onBeforeOnCellMouseOver(event, coords, TD, blockCalculations);
43120 } else if (priv.target.TD.offsetWidth / 2 + tdOffsetLeft <= mouseOffsetLeft) {
43125 tdOffsetLeft += priv.target.TD.offsetWidth;
43243 value: function onBeforeOnCellMouseDown(event, coords, TD, blockCalculations) {
43276 priv.target.TD = TD;
43347 value: function onBeforeOnCellMouseOver(event, coords, TD, blockCalculations) {
43365 priv.target.TD = TD;
44449 TD: void 0,
44513 this.addHook('beforeOnCellMouseDown', function (event, coords, TD, blockCalculations) {
44514 return _this2.onBeforeOnCellMouseDown(event, coords, TD, blockCalculations);
44516 this.addHook('beforeOnCellMouseOver', function (event, coords, TD, blockCalculations) {
44517 return _this2.onBeforeOnCellMouseOver(event, coords, TD, blockCalculations);
44816 var TD = priv.target.TD;
44837 } else if (TD.offsetHeight / 2 + tdOffsetTop <= mouseOffsetTop) {
44841 tdOffsetTop += coords.row === 0 ? TD.offsetHeight - 1 : TD.offsetHeight;
44967 value: function onBeforeOnCellMouseDown(event, coords, TD, blockCalculations) {
44999 priv.target.TD = TD;
45060 value: function onBeforeOnCellMouseOver(event, coords, TD, blockCalculations) {
45078 priv.target.TD = TD;
46205 MergeCells.prototype.applySpanProperties = function (TD, row, col) {
46210 TD.setAttribute('rowspan', info.rowspan);
46211 TD.setAttribute('colspan', info.colspan);
46213 TD.removeAttribute('rowspan');
46214 TD.removeAttribute('colspan');
46216 TD.style.display = 'none';
46219 TD.removeAttribute('rowspan');
46220 TD.removeAttribute('colspan');
46503 var afterRenderer = function afterRenderer(TD, row, col, prop, value, cellProperties) {
46505 this.mergeCells.applySpanProperties(TD, row, col);
47274 function SearchCellDecorator(instance, TD, row, col, prop, value, cellProperties) {
47278 (0, _element.addClass)(TD, searchResultClass);
47280 (0, _element.removeClass)(TD, searchResultClass);
47286 (0, _renderers.registerRenderer)('base', function (instance, TD, row, col, prop, value, cellPropert…
47319 function cellDecorator(instance, TD, row, col, prop, value, cellProperties) {
47321 if (TD.className) {
47322 TD.className = TD.className + ' ' + cellProperties.className;
47324 TD.className = cellProperties.className;
47329 (0, _element.addClass)(TD, cellProperties.readOnlyCellClassName);
47333 (0, _element.addClass)(TD, cellProperties.invalidCellClassName);
47335 (0, _element.removeClass)(TD, cellProperties.invalidCellClassName);
47339 (0, _element.addClass)(TD, cellProperties.noWordWrapClassName);
47343 (0, _element.addClass)(TD, cellProperties.placeholderCellClassName);
47380 var wrapTdContentWithWrapper = function wrapTdContentWithWrapper(TD, WRAPPER) {
47381 WRAPPER.innerHTML = TD.innerHTML;
47382 (0, _element.empty)(TD);
47383 TD.appendChild(WRAPPER);
47399 function autocompleteRenderer(instance, TD, row, col, prop, value, cellProperties) {
47409 TD.appendChild(ARROW);
47410 (0, _element.addClass)(TD, 'htAutocomplete');
47412 if (!TD.firstChild) {
47415TD.appendChild(document.createTextNode(String.fromCharCode(160))); // workaround for https://githu…
47425 instance.view.wt.getSetting('onCellDblClick', null, new _src.CellCoords(row, col), TD);
47483 function checkboxRenderer(instance, TD, row, col, prop, value, cellProperties) {
47498 (0, _element.empty)(TD); // TODO identify under what circumstances this line can be removed
47534 TD.appendChild(input);
47537 TD.appendChild(document.createTextNode('#bad-value#'));
47827 function htmlRenderer(instance, TD, row, col, prop, value, cellProperties) {
47834 (0, _element.fastInnerHTML)(TD, value);
47872 function numericRenderer(instance, TD, row, col, prop, value, cellProperties) {
47895 (0, _index.getRenderer)('text')(instance, TD, row, col, prop, value, cellProperties);
47926 function passwordRenderer(instance, TD, row, col, prop, value, cellProperties) {
47929 value = TD.innerHTML;
47939 (0, _element.fastInnerHTML)(TD, hash);
47972 function textRenderer(instance, TD, row, col, prop, value, cellProperties) {
47986 (0, _element.empty)(TD);
47992 TD.appendChild(TEMPLATE);
47995 (0, _element.fastInnerText)(TD, escaped);
48280 cellRenderer: function cellRenderer(row, col, TD) {
48289 that.instance.runHooks('beforeRenderer', TD, row, col, prop, value, cellProperties);
48290 …that.instance.getCellRenderer(cellProperties)(that.instance, TD, row, col, prop, value, cellProper…
48291 that.instance.runHooks('afterRenderer', TD, row, col, prop, value, cellProperties);
48297 onCellMouseDown: function onCellMouseDown(event, coords, TD, wt) {
48309 instance.runHooks('beforeOnCellMouseDown', event, coords, TD, blockCalculations);
48397 instance.runHooks('afterOnCellMouseDown', event, coords, TD);
48400 onCellMouseOut: function onCellMouseOut(event, coords, TD, wt) {
48402 instance.runHooks('beforeOnCellMouseOut', event, coords, TD);
48408 instance.runHooks('afterOnCellMouseOut', event, coords, TD);
48411 onCellMouseOver: function onCellMouseOver(event, coords, TD, wt) {
48419 instance.runHooks('beforeOnCellMouseOver', event, coords, TD, blockCalculations);
48447 instance.runHooks('afterOnCellMouseOver', event, coords, TD);
48450 onCellMouseUp: function onCellMouseUp(event, coords, TD, wt) {
48452 instance.runHooks('beforeOnCellMouseUp', event, coords, TD);
48454 instance.runHooks('afterOnCellMouseUp', event, coords, TD);