当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Attr.remove方法代码示例

本文整理汇总了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);
 };
开发者ID:abstask,项目名称:tinymce,代码行数:7,代码来源:IosViewport.ts

示例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);
 });
开发者ID:abstask,项目名称:tinymce,代码行数:9,代码来源:Thor.ts

示例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');
  });
};
开发者ID:tinymce,项目名称:tinymce,代码行数:7,代码来源:Util.ts

示例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);
开发者ID:abstask,项目名称:tinymce,代码行数:9,代码来源:InsertTable.ts

示例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');
  }
};
开发者ID:tinymce,项目名称:tinymce,代码行数:12,代码来源:Throbber.ts

示例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');
   }
 },
开发者ID:tinymce,项目名称:tinymce,代码行数:12,代码来源:ToolbarButtons.ts

示例7: function

 Arr.each(SelectorFilter.descendants(Element.fromDom(editor.getBody()), '*[data-mce-selected]'), function (elm) {
   Attr.remove(elm, 'data-mce-selected');
 });
开发者ID:aha-app,项目名称:tinymce-word-paste-filter,代码行数:3,代码来源:SelectionOverrides.ts

示例8: function

 Arr.each(SelectorFilter.descendants(element, '*'), function (elm) {
   Attr.remove(elm, 'data-mce-selected');
 });
开发者ID:aha-app,项目名称:tinymce-word-paste-filter,代码行数:3,代码来源:TableDeleteTest.ts

示例9: function

 Arr.each(dataStyleCells, function (cell) {
   Attr.remove(cell, 'data-mce-style');
 });
开发者ID:abstask,项目名称:tinymce,代码行数:3,代码来源:TableActions.ts

示例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;
 });
开发者ID:abstask,项目名称:tinymce,代码行数:6,代码来源:SimpleTableModel.ts


注:本文中的@ephox/sugar.Attr.remove方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。