diff options
Diffstat (limited to 'files/pl/mozilla/tech/xul/metoda/removeitemat/index.html')
| -rw-r--r-- | files/pl/mozilla/tech/xul/metoda/removeitemat/index.html | 39 |
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><script language="javascript"> -function removeSelectedItem(){ - - var myListBox = document.getElementById('myListBox'); - - if(myListBox.selectedIndex == -1){ - return; // brak zaznaczonych pozycji, więc zwraca - }else{ - myListBox.removeItemAt(myListBox.selectedIndex); - } -} -</script> - -<button label="Usuń zaznaczoną pozycję" oncommand="removeSelectedItem()"/> -<listbox id="myListBox"> - <listitem label="Alpha"/> - <listitem label="Beta"/> - <listitem label="Oscar"/> - <listitem label="Foxtrot"/> -</listbox> -</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> |
