aboutsummaryrefslogtreecommitdiff
path: root/files/pl/mozilla/tech/xul/metoda/removeitemat/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/pl/mozilla/tech/xul/metoda/removeitemat/index.html')
-rw-r--r--files/pl/mozilla/tech/xul/metoda/removeitemat/index.html39
1 files changed, 0 insertions, 39 deletions
diff --git a/files/pl/mozilla/tech/xul/metoda/removeitemat/index.html b/files/pl/mozilla/tech/xul/metoda/removeitemat/index.html
deleted file mode 100644
index 31d06b97c3..0000000000
--- a/files/pl/mozilla/tech/xul/metoda/removeitemat/index.html
+++ /dev/null
@@ -1,39 +0,0 @@
----
-title: removeItemAt
-slug: Mozilla/Tech/XUL/Metoda/removeItemAt
-tags:
- - Dokumentacja_XUL
- - Metody_XUL
-translation_of: Archive/Mozilla/XUL/Method/removeItemAt
----
-<div class="noinclude"><span class="breadcrumbs XULRefMeth_breadcrumbs">« <a href="/pl/docs/Dokumentacja_XUL" title="/pl/docs/Dokumentacja_XUL">Dokumentacja XUL</a></span></div>
-<dl><dt> <span id="m-removeItemAt"><code><a href="https://developer.mozilla.org/pl/docs/Mozilla/Tech/XUL/Metoda/removeItemAt">removeItemAt( index )</a></code></span>
-</dt><dd> Zwraca typ: <i>element</i>
-</dd><dd> Usuwa pozycję potomną w elemencie o określonym indeksie. Metoda zwraca usuniętą pozycję.
-</dd></dl>
-<div class="noinclude">
-<pre>&lt;script language="javascript"&gt;
-function removeSelectedItem(){
-
- var myListBox = document.getElementById('myListBox');
-
- if(myListBox.selectedIndex == -1){
- return; // brak zaznaczonych pozycji, więc zwraca
- }else{
- myListBox.removeItemAt(myListBox.selectedIndex);
- }
-}
-&lt;/script&gt;
-
-&lt;button label="Usuń zaznaczoną pozycję" oncommand="removeSelectedItem()"/&gt;
-&lt;listbox id="myListBox"&gt;
- &lt;listitem label="Alpha"/&gt;
- &lt;listitem label="Beta"/&gt;
- &lt;listitem label="Oscar"/&gt;
- &lt;listitem label="Foxtrot"/&gt;
-&lt;/listbox&gt;
-</pre>
-<h3 id="Zobacz_tak.C5.BCe" name="Zobacz_tak.C5.BCe">Zobacz także</h3>
-<p><a href="pl/XUL/Metoda/removeAllItems">removeAllItems()</a>, <a href="pl/XUL/Metoda/appendItem">appendItem()</a> i <a href="pl/XUL/Metoda/insertItemAt">insertItemAt()</a>
-</p>
-</div>