本文整理汇总了TypeScript中handsontable.dom类的典型用法代码示例。如果您正苦于以下问题:TypeScript dom类的具体用法?TypeScript dom怎么用?TypeScript dom使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了dom类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: createElements
createElements() {
// Call the original createElements method
super.createElements.apply(this, arguments);
// Create password input and update relevant properties
this.TEXTAREA = document.createElement('input');
this.TEXTAREA.setAttribute('type', 'password');
this.TEXTAREA.className = 'handsontableInput';
this.textareaStyle = this.TEXTAREA.style;
this.textareaStyle.width = '0';
this.textareaStyle.height = '0';
//replace textarea with password input
Handsontable.dom.empty(this.TEXTAREA_PARENT);
this.TEXTAREA_PARENT.appendChild(this.TEXTAREA);
}
示例2: HTMLElement
import * as Handsontable from 'handsontable';
const domElement = new HTMLElement();
const domEvent = new Event('foo');
const htmlCharacters = Handsontable.dom.HTML_CHARACTERS;
Handsontable.dom.addEvent(domElement, "eventName", () => {});
Handsontable.dom.addClass(domElement, ['foo', 'bar']);
Handsontable.dom.addEvent(domElement, 'foo', () => {});
Handsontable.dom.closest(domElement, ['foo'], domElement);
Handsontable.dom.closestDown(domElement, ['foo', 'bar'], domElement);
Handsontable.dom.empty(domElement);
Handsontable.dom.fastInnerHTML(domElement, 'foo');
Handsontable.dom.fastInnerText(domElement, 'foo');
Handsontable.dom.getCaretPosition(domElement);
Handsontable.dom.getComputedStyle(domElement);
Handsontable.dom.getCssTransform(domElement);
Handsontable.dom.getParent(domElement, 1);
Handsontable.dom.getScrollLeft(domElement);
Handsontable.dom.getScrollTop(domElement);
Handsontable.dom.getScrollableElement(domElement);
Handsontable.dom.getScrollbarWidth();
Handsontable.dom.getSelectionEndPosition(domElement);
Handsontable.dom.getSelectionText();
Handsontable.dom.getStyle(domElement, 'foo');
Handsontable.dom.getTrimmingContainer(domElement);
Handsontable.dom.getWindowScrollLeft();
Handsontable.dom.getWindowScrollTop();
Handsontable.dom.hasClass(domElement, 'foo');
Handsontable.dom.hasHorizontalScrollbar(domElement);