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
+11
-11
@@ -1203,7 +1203,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>
|
||||
@@ -1238,11 +1238,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>
|
||||
@@ -1253,11 +1253,11 @@ https://reactjs.org/docs/refs-and-the-dom.html#legacy-api-string-refs</p>
|
||||
<hr />
|
||||
<h3 id="static-defaultprops"><code>Static</code> defaultProps<a class="headerlink" href="#static-defaultprops" title="Permanent link">#</a></h3>
|
||||
<p>▪ <strong>defaultProps</strong>: <em>object</em> = defaultProps as object</p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/+namespaces/namespace-select.tsx#L30">src/renderer/components/+namespaces/namespace-select.tsx:30</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/+namespaces/namespace-select.tsx#L30">src/renderer/components/+namespaces/namespace-select.tsx:30</a></em></p>
|
||||
<h2 id="accessors_1">Accessors<a class="headerlink" href="#accessors_1" title="Permanent link">#</a></h2>
|
||||
<h3 id="options">options<a class="headerlink" href="#options" title="Permanent link">#</a></h3>
|
||||
<p>• <strong>get options</strong>(): <em><a href="../../interfaces/_renderer_api_components_.selectoption/">SelectOption</a>[]</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/+namespaces/namespace-select.tsx#L44">src/renderer/components/+namespaces/namespace-select.tsx:44</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/+namespaces/namespace-select.tsx#L44">src/renderer/components/+namespaces/namespace-select.tsx:44</a></em></p>
|
||||
<p><strong>Returns:</strong> <em><a href="../../interfaces/_renderer_api_components_.selectoption/">SelectOption</a>[]</em></p>
|
||||
<h2 id="methods_1">Methods<a class="headerlink" href="#methods_1" title="Permanent link">#</a></h2>
|
||||
<h3 id="optional-unsafe_componentwillmount"><code>Optional</code> UNSAFE_componentWillMount<a class="headerlink" href="#optional-unsafe_componentwillmount" title="Permanent link">#</a></h3>
|
||||
@@ -1376,7 +1376,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>Promise‹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/+namespaces/namespace-select.tsx#L33">src/renderer/components/+namespaces/namespace-select.tsx:33</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/+namespaces/namespace-select.tsx#L33">src/renderer/components/+namespaces/namespace-select.tsx:33</a></em></p>
|
||||
<p><strong>Returns:</strong> <em>Promise‹void›</em></p>
|
||||
<hr />
|
||||
<h3 id="optional-componentdidupdate"><code>Optional</code> componentDidUpdate<a class="headerlink" href="#optional-componentdidupdate" title="Permanent link">#</a></h3>
|
||||
@@ -1460,7 +1460,7 @@ prevents this from being invoked.</p>
|
||||
<h3 id="componentwillunmount">componentWillUnmount<a class="headerlink" href="#componentwillunmount" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>componentWillUnmount</strong>(): <em>void</em></p>
|
||||
<p><em>Overrides <a href="../_renderer_api_components_.wizardlayout/">WizardLayout</a>.<a href="../_renderer_api_components_.wizardlayout/#optional-componentwillunmount">componentWillUnmount</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/+namespaces/namespace-select.tsx#L40">src/renderer/components/+namespaces/namespace-select.tsx:40</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/+namespaces/namespace-select.tsx#L40">src/renderer/components/+namespaces/namespace-select.tsx:40</a></em></p>
|
||||
<p><strong>Returns:</strong> <em>void</em></p>
|
||||
<hr />
|
||||
<h3 id="optional-componentwillupdate"><code>Optional</code> componentWillUpdate<a class="headerlink" href="#optional-componentwillupdate" title="Permanent link">#</a></h3>
|
||||
@@ -1510,7 +1510,7 @@ prevents this from being invoked.</p>
|
||||
<hr />
|
||||
<h3 id="formatoptionlabel">formatOptionLabel<a class="headerlink" href="#formatoptionlabel" title="Permanent link">#</a></h3>
|
||||
<p>▸ <strong>formatOptionLabel</strong>(<code>option</code>: <a href="../../interfaces/_renderer_api_components_.selectoption/">SelectOption</a>): <em>object</em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/b1ab31831/src/renderer/components/+namespaces/namespace-select.tsx#L57">src/renderer/components/+namespaces/namespace-select.tsx:57</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/+namespaces/namespace-select.tsx#L57">src/renderer/components/+namespaces/namespace-select.tsx:57</a></em></p>
|
||||
<p><strong>Parameters:</strong></p>
|
||||
<table>
|
||||
<thead>
|
||||
@@ -1561,7 +1561,7 @@ 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/+namespaces/namespace-select.tsx#L69">src/renderer/components/+namespaces/namespace-select.tsx:69</a></em></p>
|
||||
<p><em>Defined in <a href="https://github.com/lensapp/lens/blob/11595abc9/src/renderer/components/+namespaces/namespace-select.tsx#L69">src/renderer/components/+namespaces/namespace-select.tsx:69</a></em></p>
|
||||
<p><strong>Returns:</strong> <em>Element‹›</em></p>
|
||||
<hr />
|
||||
<h3 id="setstate">setState<a class="headerlink" href="#setstate" title="Permanent link">#</a></h3>
|
||||
|
||||
Reference in new issue
Block a user