mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Deployed 11595abc9 to master with MkDocs 1.1.2 and mike 0.5.5
This commit is contained in:
1 parent
d44de88d04
commit
ab1427987f
212 files changed
+3909
-3909
No files matched your search
@@ -1206,7 +1206,7 @@
|
||||
<p>If using the new style context, re-declare this in your class to be the
|
||||
<code>React.ContextType</code> of your <code>static contextType</code>.
|
||||
Should be used with type annotation or static contextType.</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="kr">static</span> <span class="nx">contextType</span> <span class="o">=</span> <span class="nx">MyContext</span>
|
||||
<div class="highlight"><pre><span></span><code><span class="k">static</span> <span class="nx">contextType</span> <span class="o">=</span> <span class="nx">MyContext</span>
|
||||
<span class="c1">// For TS pre-3.7:</span>
|
||||
<span class="nx">context</span><span class="o">!:</span> <span class="nx">React</span><span class="p">.</span><span class="nx">ContextType</span><span class="o"><</span><span class="k">typeof</span> <span class="nx">MyContext</span><span class="o">></span>
|
||||
<span class="c1">// For TS 3.7 and above:</span>
|
||||
@@ -1216,7 +1216,7 @@ Should be used with type annotation or static contextType.</p>
|
||||
<hr />
|
||||
<h3 id="elem">elem<a class="headerlink" href="#elem" title="Permanent link">#</a></h3>
|
||||
<p>• <strong>elem</strong>: <em>HTMLElement</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/notifications/notifications.tsx#L14">src/renderer/components/notifications/notifications.tsx:14</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/notifications/notifications.tsx#L14">src/renderer/components/notifications/notifications.tsx:14</a></em></p>
|
||||
<hr />
|
||||
<h3 id="props">props<a class="headerlink" href="#props" title="Permanent link">#</a></h3>
|
||||
<p>• <strong>props</strong>: <em>Readonly‹P› & Readonly‹object›</em></p>
|
||||
@@ -1245,11 +1245,11 @@ https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs</p>
|
||||
<p>Defined in node_modules/@types/react/index.d.ts:455</p>
|
||||
<p>If set, <code>this.context</code> will be set at runtime to the current value of the given Context.</p>
|
||||
<p>Usage:</p>
|
||||
<div class="highlight"><pre><span></span><code><span class="nx">type</span> <span class="nx">MyContext</span> <span class="o">=</span> <span class="kt">number</span>
|
||||
<span class="kr">const</span> <span class="nx">Ctx</span> <span class="o">=</span> <span class="nx">React</span><span class="p">.</span><span class="nx">createContext</span><span class="o"><</span><span class="nx">MyContext</span><span class="o">></span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
|
||||
<div class="highlight"><pre><span></span><code><span class="kd">type</span> <span class="nx">MyContext</span> <span class="o">=</span> <span class="kt">number</span>
|
||||
<span class="kd">const</span> <span class="nx">Ctx</span> <span class="o">=</span> <span class="nx">React</span><span class="p">.</span><span class="nx">createContext</span><span class="o"><</span><span class="nx">MyContext</span><span class="o">></span><span class="p">(</span><span class="mf">0</span><span class="p">)</span>
|
||||
|
||||
<span class="kr">class</span> <span class="nx">Foo</span> <span class="kr">extends</span> <span class="nx">React</span><span class="p">.</span><span class="nx">Component</span> <span class="p">{</span>
|
||||
<span class="kr">static</span> <span class="nx">contextType</span> <span class="o">=</span> <span class="nx">Ctx</span>
|
||||
<span class="kd">class</span> <span class="nx">Foo</span> <span class="k">extends</span> <span class="nx">React</span><span class="p">.</span><span class="nx">Component</span> <span class="p">{</span>
|
||||
<span class="k">static</span> <span class="nx">contextType</span> <span class="o">=</span> <span class="nx">Ctx</span>
|
||||
<span class="nx">context</span><span class="o">!:</span> <span class="nx">React</span><span class="p">.</span><span class="nx">ContextType</span><span class="o"><</span><span class="k">typeof</span> <span class="nx">Ctx</span><span class="o">></span>
|
||||
<span class="nx">render</span> <span class="p">()</span> <span class="p">{</span>
|
||||
<span class="k">return</span> <span class="o"><></span><span class="nx">My</span> <span class="nx">context</span><span class="err">'</span><span class="nx">s</span> <span class="nx">value</span><span class="o">:</span> <span class="p">{</span><span class="k">this</span><span class="p">.</span><span class="nx">context</span><span class="p">}</span><span class="o"><</span><span class="err">/>;</span>
|
||||
@@ -1374,7 +1374,7 @@ the entire component tree to unmount.</p>
|
||||
<h3 id="componentdidmount">componentDidMount<a class="headerlink" href="#componentdidmount" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>componentDidMount</strong>(): <em>void</em></p>
|
||||
<p><em>Overrides <a href="../_renderer_api_components_.wizardlayout/">WizardLayout</a>.<a href="../_renderer_api_components_.wizardlayout/#optional-componentdidmount">componentDidMount</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/notifications/notifications.tsx#L41">src/renderer/components/notifications/notifications.tsx:41</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/notifications/notifications.tsx#L41">src/renderer/components/notifications/notifications.tsx:41</a></em></p>
|
||||
<p><strong>Returns:</strong> <em>void</em></p>
|
||||
<hr />
|
||||
<h3 id="optional-componentdidupdate"><code>Optional</code> componentDidUpdate<a class="headerlink" href="#optional-componentdidupdate" title="Permanent link">#</a></h3>
|
||||
@@ -1510,7 +1510,7 @@ prevents this from being invoked.</p>
|
||||
<hr />
|
||||
<h3 id="getmessage">getMessage<a class="headerlink" href="#getmessage" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>getMessage</strong>(<code>notification</code>: <a href="../../interfaces/_renderer_api_components_.notification/">Notification</a>): <em>(string | number | object | ReactElement‹any, string | function | object› | ReactNodeArray‹› | ReactPortal‹›)[]</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/notifications/notifications.tsx#L59">src/renderer/components/notifications/notifications.tsx:59</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/notifications/notifications.tsx#L59">src/renderer/components/notifications/notifications.tsx:59</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -1561,12 +1561,12 @@ lifecycle events from running.</p>
|
||||
<h3 id="render">render<a class="headerlink" href="#render" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>render</strong>(): <em>Element‹›</em></p>
|
||||
<p><em>Overrides void</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/notifications/notifications.tsx#L69">src/renderer/components/notifications/notifications.tsx:69</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/notifications/notifications.tsx#L69">src/renderer/components/notifications/notifications.tsx:69</a></em></p>
|
||||
<p><strong>Returns:</strong> <em>Element‹›</em></p>
|
||||
<hr />
|
||||
<h3 id="scrolltolastnotification">scrollToLastNotification<a class="headerlink" href="#scrolltolastnotification" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>scrollToLastNotification</strong>(): <em>void</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/notifications/notifications.tsx#L49">src/renderer/components/notifications/notifications.tsx:49</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/notifications/notifications.tsx#L49">src/renderer/components/notifications/notifications.tsx:49</a></em></p>
|
||||
<p><strong>Returns:</strong> <em>void</em></p>
|
||||
<hr />
|
||||
<h3 id="setstate">setState<a class="headerlink" href="#setstate" title="Permanent link">#</a></h3>
|
||||
@@ -1618,7 +1618,7 @@ and <code>componentDidUpdate</code> will not be called.</p>
|
||||
<hr />
|
||||
<h3 id="static-error"><code>Static</code> error<a class="headerlink" href="#static-error" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>error</strong>(<code>message</code>: <a href="../../modules/_renderer_api_components_/#notificationmessage">NotificationMessage</a>): <em>void</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/notifications/notifications.tsx#L24">src/renderer/components/notifications/notifications.tsx:24</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/notifications/notifications.tsx#L24">src/renderer/components/notifications/notifications.tsx:24</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -1638,7 +1638,7 @@ and <code>componentDidUpdate</code> will not be called.</p>
|
||||
<hr />
|
||||
<h3 id="static-info"><code>Static</code> info<a class="headerlink" href="#static-info" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>info</strong>(<code>message</code>: <a href="../../modules/_renderer_api_components_/#notificationmessage">NotificationMessage</a>, <code>customOpts</code>: Partial‹<a href="../../interfaces/_renderer_api_components_.notification/">Notification</a>›): <em>function</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/notifications/notifications.tsx#L32">src/renderer/components/notifications/notifications.tsx:32</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/notifications/notifications.tsx#L32">src/renderer/components/notifications/notifications.tsx:32</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -1666,7 +1666,7 @@ and <code>componentDidUpdate</code> will not be called.</p>
|
||||
<hr />
|
||||
<h3 id="static-ok"><code>Static</code> ok<a class="headerlink" href="#static-ok" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>ok</strong>(<code>message</code>: <a href="../../modules/_renderer_api_components_/#notificationmessage">NotificationMessage</a>): <em>void</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/notifications/notifications.tsx#L16">src/renderer/components/notifications/notifications.tsx:16</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/notifications/notifications.tsx#L16">src/renderer/components/notifications/notifications.tsx:16</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
|
||||
Reference in new issue
Block a user