org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-D498AD58-DF42-4FBA-8767-91FC624873C0.html
changeset 229 716254ccbcc0
equal deleted inserted replaced
228:913c9751c067 229:716254ccbcc0
       
     1 
       
     2 <!DOCTYPE html
       
     3   PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
     4 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/><meta name="copyright" content="(C) Copyright 2009"/><meta name="DC.rights.owner" content="(C) Copyright 2009"/><meta name="DC.Type" content="mobileconcept"/><meta name="DC.Title" content="append()"/><meta name="DC.Relation" scheme="URI" content="GUID-E869B263-7EBF-4590-890B-563871C438C6"/><meta name="DC.Relation" scheme="URI" content="GUID-960AD4A0-AE70-4608-99E7-B663FB99A68D"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Relation" scheme="URI" content="GUID-111DE423-9C84-4E4B-A45E-15081FE2A30D"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-D498AD58-DF42-4FBA-8767-91FC624873C0"/><title>append() </title><script type="text/javascript">
       
     5       function initPage() {}
       
     6     </script><link href="../PRODUCT_PLUGIN/book.css" rel="stylesheet" type="text/css"/><link href="css/s60/style.css" rel="stylesheet" type="text/css" media="all"/></head><body onload="initPage();"><div class="body"><div class="contentLeft prTxt"><h1 class="pageHeading" id="GUID-D498AD58-DF42-4FBA-8767-91FC624873C0">append()</h1><div>
       
     7 <p><strong>Description:</strong></p>
       
     8 <p>Call the <code>append</code> method to add a child menu item
       
     9 to the parent menu item in the options menu list. This results in the creation
       
    10 of a submenu list in the menu tree. Use this method to create a cascading
       
    11 submenu when needed.</p>
       
    12 <p>Menu items are shown on the options menu list in the order in which
       
    13 they are appended.</p>
       
    14 <p><strong>Syntax:</strong></p>
       
    15 <pre class="codeblock" id="GUID-950D27EE-7CA6-4CD1-B79A-0F9BCC770B1E">[void] MenuItem.append(MenuItem childMenuItem)</pre>
       
    16 <p><strong>Arguments:</strong></p>
       
    17 <ul>
       
    18 <li><p><code>childMenuItem</code>:</p>
       
    19 
       
    20 <p>This is an instance of the <a href="GUID-111DE423-9C84-4E4B-A45E-15081FE2A30D.html#GUID-111DE423-9C84-4E4B-A45E-15081FE2A30D"><code>MenuItem</code></a> object
       
    21 which is being added to the parent menu item. See also the <a href="GUID-704CF29C-1FDC-4192-9338-C8B9B926111C.html#GUID-704CF29C-1FDC-4192-9338-C8B9B926111C"><code>menu.append</code></a> method description for instructions on how to append a menu item
       
    22 to the top level of the options menu list.</p>
       
    23 
       
    24 </li>
       
    25 </ul>
       
    26 <p><strong>Return value:</strong></p>
       
    27 <p>This method does not return a value.</p>
       
    28 <p><strong>Remarks:</strong></p>
       
    29 <p>For devices with a small screen, it is not practical to create multi-level
       
    30 cascading submenus. Thus, a maximum of two-levels is recommended for submenus.</p>
       
    31 <p>Appending a new menu item fails if it tries to create a duplicate menu
       
    32 item (it either has the same <code>id</code> or the same <code>label</code> as
       
    33 an existing menu item).</p>
       
    34 <p>For more general information on constructing an options menu, see <a href="GUID-94946735-D23B-49C6-BB65-8BE31737AE42.html#GUID-94946735-D23B-49C6-BB65-8BE31737AE42">Using softkeys</a>.</p>
       
    35 <p><strong>Example code:</strong></p>
       
    36 <p>See the example code in the description of the <a href="GUID-A022ED1B-E618-4C44-A437-78393900599C.html#GUID-A022ED1B-E618-4C44-A437-78393900599C"><code>MenuItem.onSelect</code></a> property.</p>
       
    37 </div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>