layout/xul/grid/examples/javascriptappend.xul

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     1 <?xml version="1.0"?> 
     2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
     3    - License, v. 2.0. If a copy of the MPL was not distributed with this
     4    - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
     7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> 
     9 <!DOCTYPE window> 
    12 <window orient="vertical" style="border: 2px solid green"
    13         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 
    15   <script>
    16     function start()
    17 	{
    18 	   var row = document.getElementById("row");
    19 	   var text = document.createElement("text");
    20 	   text.setAttribute("value", "foo");
    21 	   row.appendChild(text);
    22 	}
    24   </script>
    26   <hbox>
    27     <grid style="border: 2px solid red;" id="grid">
    28 	   <columns>
    29 	   </columns>
    31 	   <rows>
    32 	     <row id="row">
    33 		   <button label="value"/>
    34 		 </row>
    35 	   </rows>
    36 	</grid>
    37 	<spacer flex="1" style="background-color: white"/>
    38   </hbox>
    40   <button label="insert" oncommand="start()"/>
    42 </window>

mercurial