aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/api/window/cancelidlecallback/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/api/window/cancelidlecallback/index.md')
-rw-r--r--files/fr/web/api/window/cancelidlecallback/index.md40
1 files changed, 40 insertions, 0 deletions
diff --git a/files/fr/web/api/window/cancelidlecallback/index.md b/files/fr/web/api/window/cancelidlecallback/index.md
new file mode 100644
index 0000000000..39c94deb9a
--- /dev/null
+++ b/files/fr/web/api/window/cancelidlecallback/index.md
@@ -0,0 +1,40 @@
+---
+title: window.cancelIdleCallback()
+slug: Web/API/Window/cancelIdleCallback
+translation_of: Web/API/Window/cancelIdleCallback
+---
+<div>{{APIRef}}{{SeeCompatTable}}</div>
+
+<p>La méthode <strong><code>window.cancelIdleCallback()</code></strong> annule une fonction précedemment planifiée via {{domxref("window.requestIdleCallback()")}}.</p>
+
+<h2 id="Syntax">Syntaxe</h2>
+
+<pre class="syntaxbox">window.cancelIdleCallback(<em>idleCallbackId</em>);</pre>
+
+<h3 id="Parameters">Paramètres</h3>
+
+<dl>
+ <dt>idleCallbackId</dt>
+ <dd>L'entier long non-signé retourné par {{domxref("window.requestIdleCallback()")}}.</dd>
+</dl>
+
+<h2 id="Specifications">Spécifications</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <th>Spécification</th>
+ <th>Status</th>
+ <th>Commentaire</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('Background Tasks')}}</td>
+ <td>{{Spec2('Background Tasks')}}</td>
+ <td>Définition initiale.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Compatibilité des navigateurs</h2>
+
+<p>{{Compat("api.Window.cancelIdleCallback")}}</p>