Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <?xml version="1.0"?> |
michael@0 | 2 | <!-- This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 3 | - License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 4 | - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> |
michael@0 | 5 | |
michael@0 | 6 | |
michael@0 | 7 | <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> |
michael@0 | 8 | |
michael@0 | 9 | <!DOCTYPE window> |
michael@0 | 10 | |
michael@0 | 11 | |
michael@0 | 12 | <window orient="vertical" style="border: 2px solid green" |
michael@0 | 13 | xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> |
michael@0 | 14 | |
michael@0 | 15 | <script> |
michael@0 | 16 | |
michael@0 | 17 | function collapseTag(id) |
michael@0 | 18 | { |
michael@0 | 19 | var row = window.document.getElementById(id); |
michael@0 | 20 | row.setAttribute("collapsed","true"); |
michael@0 | 21 | } |
michael@0 | 22 | |
michael@0 | 23 | function uncollapseTag(id) |
michael@0 | 24 | { |
michael@0 | 25 | var row = window.document.getElementById(id); |
michael@0 | 26 | row.setAttribute("collapsed","false"); |
michael@0 | 27 | } |
michael@0 | 28 | |
michael@0 | 29 | |
michael@0 | 30 | </script> |
michael@0 | 31 | |
michael@0 | 32 | <hbox> |
michael@0 | 33 | <grid style="border: 2px solid red;" id="grid"> |
michael@0 | 34 | <columns id="columns1"> |
michael@0 | 35 | <column id="column1"/> |
michael@0 | 36 | <column id="column2"/> |
michael@0 | 37 | <column id="column3"/> |
michael@0 | 38 | </columns> |
michael@0 | 39 | |
michael@0 | 40 | <rows id="rows1" style="font-size: 24pt"> |
michael@0 | 41 | <row id="row1"> |
michael@0 | 42 | <text value="cell1"/> |
michael@0 | 43 | <text value="cell2"/> |
michael@0 | 44 | <text value="cell3"/> |
michael@0 | 45 | </row> |
michael@0 | 46 | <row id="row2"> |
michael@0 | 47 | <text value="cell4"/> |
michael@0 | 48 | <text value="cell5"/> |
michael@0 | 49 | <text value="cell6"/> |
michael@0 | 50 | </row> |
michael@0 | 51 | <row id="row3"> |
michael@0 | 52 | <text value="cell7"/> |
michael@0 | 53 | <text value="cell8"/> |
michael@0 | 54 | <text value="cell9"/> |
michael@0 | 55 | </row> |
michael@0 | 56 | </rows> |
michael@0 | 57 | </grid> |
michael@0 | 58 | </hbox> |
michael@0 | 59 | <hbox> |
michael@0 | 60 | <button label="collapse row 2" oncommand="collapseTag('row2');"/> |
michael@0 | 61 | <button label="uncollapse row 2" oncommand="uncollapseTag('row2');"/> |
michael@0 | 62 | <button label="collapse column 2" oncommand="collapseTag('column2');"/> |
michael@0 | 63 | <button label="uncollapse column 2" oncommand="uncollapseTag('column2');"/> |
michael@0 | 64 | |
michael@0 | 65 | </hbox> |
michael@0 | 66 | |
michael@0 | 67 | </window> |