當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。