Skip to content

Commit

Permalink
Update description
Browse files Browse the repository at this point in the history
  • Loading branch information
rexrainbow committed Sep 28, 2023
1 parent 9d47195 commit 1f8ebdb
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 11 deletions.
14 changes: 9 additions & 5 deletions docs/docs/ui-imageinputlabel.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,15 +327,15 @@ imageInputLabel.saveTexture(key);
```
- Canvas game object (a [canvas game object](canvas.md) created internally)
```javascript
var icon = imageInputLabel.getElement('icon');
var canvas = imageInputLabel.getElement('canvas');
```
- Icon game object (an [imageBox game object](imagebox.md) created internally)
- Icon background game object
```javascript
var icon = imageInputLabel.getElement('icon');
var iconBackground = imageInputLabel.getElement('iconBackground');
```
- Icon background game object
- Icon game object (an [imageBox game object](imagebox.md) created internally)
```javascript
var icon = imageInputLabel.getElement('iconBackground');
var imageBox = imageInputLabel.getElement('icon');
```
- Text game object
```javascript
Expand All @@ -345,6 +345,10 @@ imageInputLabel.saveTexture(key);
```javascript
var action = imageInputLabel.getElement('action');
```
- [File chooser game object](filechooser.md), if `domButton` is set to `true`
```javascript
var fileChooser = imageInputLabel.getElement('fileChooser');
```
- Get by name
```javascript
var gameObject = imageInputLabel.getElement('#' + name);
Expand Down
2 changes: 1 addition & 1 deletion docs/site/search/search_index.json

Large diffs are not rendered by default.

Binary file modified docs/site/sitemap.xml.gz
Binary file not shown.
13 changes: 8 additions & 5 deletions docs/site/ui-imageinputlabel/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10049,20 +10049,23 @@ <h3 id="get-element">Get element<a class="headerlink" href="#get-element" title=
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">background</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;background&#39;</span><span class="p">);</span>
</code></pre></div></li>
<li>Canvas game object (a <a href="../canvas/">canvas game object</a> created internally)
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;icon&#39;</span><span class="p">);</span>
</code></pre></div></li>
<li>Icon game object (an <a href="../imagebox/">imageBox game object</a> created internally)
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;icon&#39;</span><span class="p">);</span>
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">canvas</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;canvas&#39;</span><span class="p">);</span>
</code></pre></div></li>
<li>Icon background game object
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">icon</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;iconBackground&#39;</span><span class="p">);</span>
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">iconBackground</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;iconBackground&#39;</span><span class="p">);</span>
</code></pre></div></li>
<li>Icon game object (an <a href="../imagebox/">imageBox game object</a> created internally)
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">imageBox</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;icon&#39;</span><span class="p">);</span>
</code></pre></div></li>
<li>Text game object
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">textObject</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;text&#39;</span><span class="p">);</span>
</code></pre></div></li>
<li>Action icon game object
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">action</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;action&#39;</span><span class="p">);</span>
</code></pre></div></li>
<li><a href="../filechooser/">File chooser game object</a>, if <code>domButton</code> is set to <code>true</code>
<div class="highlight"><pre><span></span><code><span class="kd">var</span><span class="w"> </span><span class="nx">fileChooser</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="nx">imageInputLabel</span><span class="p">.</span><span class="nx">getElement</span><span class="p">(</span><span class="s1">&#39;fileChooser&#39;</span><span class="p">);</span>
</code></pre></div></li>
</ul>
</li>
<li>Get by name
Expand Down

0 comments on commit 1f8ebdb

Please sign in to comment.