org.symbian.tools.wrttools.doc.WebDeveloper/html/GUID-111DE423-9C84-4E4B-A45E-15081FE2A30D.html
author Eugene Ostroukhov <eugeneo@symbian.org>
Mon, 15 Mar 2010 17:56:08 -0700
changeset 268 ef733cd772bb
parent 229 716254ccbcc0
permissions -rw-r--r--
Bug 2213 - User is not prompted to save when debug session is started


<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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="JavaScript MenuItem object"/><meta name="DC.Relation" scheme="URI" content="GUID-571AF37F-1E95-462A-92D2-FEA2E62F1559"/><meta name="DC.Relation" scheme="URI" content="GUID-857CF71D-3398-40C2-981A-DEC428A7BA6B"/><meta name="DC.Relation" scheme="URI" content="GUID-7C69DDA4-16F1-4A8F-BDB2-4CB0015B4E81"/><meta name="DC.Format" content="XHTML"/><meta name="DC.Identifier" content="GUID-111DE423-9C84-4E4B-A45E-15081FE2A30D"/><title>JavaScript
MenuItem object </title><script type="text/javascript">
      function initPage() {}
    </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-111DE423-9C84-4E4B-A45E-15081FE2A30D">JavaScript
MenuItem object</h1><div>
<p>The <code>MenuItem</code> object is supported since <a href="GUID-1A3ECAC1-3F09-4602-A1CD-82164040A664.html#GUID-1A3ECAC1-3F09-4602-A1CD-82164040A664">WRT
1.0</a>.</p>
<p>The <code>MenuItem</code> object is a built-in JavaScript object
in the widget engine. The <code>MenuItem</code> object is a reference
type that provides APIs for manipulating a widget's menu items. The <code>MenuItem</code> object
is designed to be used together with the <code>MenuItem</code> object
to create and manipulate the widget's main menu and cascading submenus.</p>
<p>The <code>MenuItem</code> object is created by using the <code>new</code> operator. </p>
<p><code>MenuItem</code> object methods:</p>
<ul>
<li><p><a href="GUID-960AD4A0-AE70-4608-99E7-B663FB99A68D.html#GUID-960AD4A0-AE70-4608-99E7-B663FB99A68D">Constructor</a></p>
</li>
<li><p><a href="GUID-D498AD58-DF42-4FBA-8767-91FC624873C0.html#GUID-D498AD58-DF42-4FBA-8767-91FC624873C0"><code>append()</code></a></p>
</li>
<li><p><a href="GUID-E869B263-7EBF-4590-890B-563871C438C6.html#GUID-E869B263-7EBF-4590-890B-563871C438C6"><code>remove()</code></a></p>
</li>
<li><p><a href="GUID-BE6DC1F8-A847-49B5-A3BF-318D0D1E9D8A.html#GUID-BE6DC1F8-A847-49B5-A3BF-318D0D1E9D8A"><code>setDimmed()</code></a></p>
</li>
</ul>
<p><code>MenuItem</code> object property:</p>
<ul>
<li><p><a href="GUID-A022ED1B-E618-4C44-A437-78393900599C.html#GUID-A022ED1B-E618-4C44-A437-78393900599C"><code>onSelect</code></a></p>
</li>
</ul>
<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>
</div></div></div><div class="footer"><hr/><div class="copy">© Nokia 2009.</div></div></body></html>