本文整理汇总了TypeScript中@ephox/sugar.Attr.remove方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Attr.remove方法的具体用法?TypeScript Attr.remove怎么用?TypeScript Attr.remove使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@ephox/sugar.Attr
的用法示例。
在下文中一共展示了Attr.remove方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: function
const restore = function () {
Scrollable.deregister(viewport);
Attr.set(viewport, 'style', oldViewportStyle || '');
Attr.remove(viewport, yFixedData);
Attr.remove(viewport, yScrollingData);
Attr.remove(viewport, yFixedProperty);
};
示例2: function
Arr.each(clobberedEls, function (element) {
const restore = Attr.get(element, attr);
if (restore !== 'no-styles') {
Attr.set(element, 'style', restore);
} else {
Attr.remove(element, 'style');
}
Attr.remove(element, attr);
});
示例3: function
const removeDataStyle = (table) => {
const dataStyleCells = SelectorFilter.descendants(table, 'td[data-mce-style],th[data-mce-style]');
Attr.remove(table, 'data-mce-style');
Arr.each(dataStyleCells, function (cell) {
Attr.remove(cell, 'data-mce-style');
});
};
示例4: fireEvents
return SelectorFind.descendant(Util.getBody(editor), 'table[data-mce-id="__mce"]').map((table) => {
if (isPixelsForced(editor)) {
Css.set(table, 'width', Css.get(table, 'width'));
}
Attr.remove(table, 'data-mce-id');
fireEvents(editor, table);
selectFirstCellInTable(editor, table);
return table.dom();
}).getOr(null);
示例5: renderSpinner
const toggleThrobber = (comp: AlloyComponent, state: boolean, providerBackstage: UiFactoryBackstageProviders) => {
const element = comp.element();
if (state === true) {
Replacing.set(comp, [ renderSpinner(providerBackstage) ]);
Css.remove(element, 'display');
Attr.remove(element, 'aria-hidden');
} else {
Replacing.set(comp, [ ]);
Css.set(element, 'display', 'none');
Attr.set(element, 'aria-hidden', 'true');
}
};
示例6:
setActive: (state: boolean) => {
// Note: We can't use the toggling behaviour here, as the dropdown for the menu also relies on it.
// As such, we'll need to do this manually
const elm = component.element();
if (state) {
Class.add(elm, ToolbarButtonClasses.Ticked);
Attr.set(elm, 'aria-pressed', true);
} else {
Class.remove(elm, ToolbarButtonClasses.Ticked);
Attr.remove(elm, 'aria-pressed');
}
},
示例7: function
Arr.each(SelectorFilter.descendants(Element.fromDom(editor.getBody()), '*[data-mce-selected]'), function (elm) {
Attr.remove(elm, 'data-mce-selected');
});
示例8: function
Arr.each(SelectorFilter.descendants(element, '*'), function (elm) {
Attr.remove(elm, 'data-mce-selected');
});
示例9: function
Arr.each(dataStyleCells, function (cell) {
Attr.remove(cell, 'data-mce-style');
});
示例10: function
const cells = Arr.map(row.cells(), function (cell) {
const td = Replication.deep(cell);
Attr.remove(td, 'colspan');
Attr.remove(td, 'rowspan');
return td;
});