diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /layout/xul/grid/examples/collapsetest.xul | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'layout/xul/grid/examples/collapsetest.xul')
-rw-r--r-- | layout/xul/grid/examples/collapsetest.xul | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/layout/xul/grid/examples/collapsetest.xul b/layout/xul/grid/examples/collapsetest.xul new file mode 100644 index 000000000..5e1a042f6 --- /dev/null +++ b/layout/xul/grid/examples/collapsetest.xul @@ -0,0 +1,67 @@ +<?xml version="1.0"?> +<!-- This Source Code Form is subject to the terms of the Mozilla Public + - License, v. 2.0. If a copy of the MPL was not distributed with this + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> + + +<?xml-stylesheet href="chrome://global/skin/" type="text/css"?> + +<!DOCTYPE window> + + +<window orient="vertical" style="border: 2px solid green" + xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> + +<script> + + function collapseTag(id) + { + var row = window.document.getElementById(id); + row.setAttribute("collapsed","true"); + } + + function uncollapseTag(id) + { + var row = window.document.getElementById(id); + row.setAttribute("collapsed","false"); + } + + +</script> + + <hbox> + <grid style="border: 2px solid red;" id="grid"> + <columns id="columns1"> + <column id="column1"/> + <column id="column2"/> + <column id="column3"/> + </columns> + + <rows id="rows1" style="font-size: 24pt"> + <row id="row1"> + <text value="cell1"/> + <text value="cell2"/> + <text value="cell3"/> + </row> + <row id="row2"> + <text value="cell4"/> + <text value="cell5"/> + <text value="cell6"/> + </row> + <row id="row3"> + <text value="cell7"/> + <text value="cell8"/> + <text value="cell9"/> + </row> + </rows> + </grid> + </hbox> + <hbox> + <button label="collapse row 2" oncommand="collapseTag('row2');"/> + <button label="uncollapse row 2" oncommand="uncollapseTag('row2');"/> + <button label="collapse column 2" oncommand="collapseTag('column2');"/> + <button label="uncollapse column 2" oncommand="uncollapseTag('column2');"/> + + </hbox> + +</window> |