From a065e04d529da1d847b5062a12c46d916408bf32 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 21:46:22 -0500 Subject: update based on https://github.com/mdn/yari/issues/2028 --- .../currentindex/index.html" | 44 ---------------------- 1 file changed, 44 deletions(-) delete mode 100644 "files/pl/mozilla/tech/xul/w\305\202asno\305\233\304\207/currentindex/index.html" (limited to 'files/pl/mozilla/tech/xul/własność/currentindex/index.html') diff --git "a/files/pl/mozilla/tech/xul/w\305\202asno\305\233\304\207/currentindex/index.html" "b/files/pl/mozilla/tech/xul/w\305\202asno\305\233\304\207/currentindex/index.html" deleted file mode 100644 index 5aaab3d796..0000000000 --- "a/files/pl/mozilla/tech/xul/w\305\202asno\305\233\304\207/currentindex/index.html" +++ /dev/null @@ -1,44 +0,0 @@ ---- -title: currentIndex -slug: Mozilla/Tech/XUL/Własność/currentIndex -tags: - - Własności_XUL -translation_of: Archive/Mozilla/XUL/Property/currentIndex ---- -
« Dokumentacja XUL
-
currentIndex -
Typ: integer -
Ustawia indeks bieżącego aktywnego wiersza w tree (drzewie). Jeśli jest brak aktywnego wiersza, wartość będzie -1. Dla wielu zaznaczeń drzew, bieżącym indeksem jest ostatnio zaznaczony wiersz. Nie stosuj tej własności do zmiany zaznaczenia. Zamiast stosować metody obiektu nsITreeSelection dostępnego przez tree.view.selection. -
-
-
// One way of retrieving the text of a cell.
-<script language ="javascript">
-function treeRowClicked(){
-    var tree = Id("my-tree");
-    var selection = tree.contentView.getItemAtIndex( tree.currentIndex );
-    var foo = selection.firstChild.firstChild.getAttribute("label");
-    alert(foo);
-}
-</script>
-
-<tree id="my-tree" seltype="single" onselect="treeRowClicked()">
-  <treecols>
-    <treecol label="Title" flex="1"/><treecol label="URL" flex="1"/>
-  </treecols>
-  <treechildren>
-    <treeitem>
-      <treerow>
-        <treecell label="joe@somewhere.com"/>
-        <treecell label="Ściśle tajne plany"/>
-      </treerow>
-    </treeitem>
-    <treeitem>
-      <treerow>
-        <treecell label="mel@whereever.com"/>
-        <treecell label="Zróbmy obiad"/>
-      </treerow>
-    </treeitem>
-  </treechildren>
-</tree>
-
-
-- cgit v1.2.3-54-g00ecf