aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/mozilla/tech/xul/attribute/menuitem.name
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/mozilla/tech/xul/attribute/menuitem.name
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/mozilla/tech/xul/attribute/menuitem.name')
-rw-r--r--files/zh-cn/mozilla/tech/xul/attribute/menuitem.name/index.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/files/zh-cn/mozilla/tech/xul/attribute/menuitem.name/index.html b/files/zh-cn/mozilla/tech/xul/attribute/menuitem.name/index.html
new file mode 100644
index 0000000000..a485138846
--- /dev/null
+++ b/files/zh-cn/mozilla/tech/xul/attribute/menuitem.name/index.html
@@ -0,0 +1,38 @@
+---
+title: menuitem.name
+slug: Mozilla/Tech/XUL/Attribute/menuitem.name
+tags:
+ - XUL Attributes
+translation_of: Archive/Mozilla/XUL/Attribute/menuitem.name
+---
+<div class="noinclude">
+ <span class="breadcrumbs xulRefAttr_breadcrumbs">« <a href="/zh-CN/docs/XUL_Reference">XUL Reference home</a></span></div>
+<dl>
+ <dt>
+ <code id="a-menuitem.name"><a href="https://developer.mozilla.org/zh-CN/docs/Mozilla/Tech/XUL/Attribute/menuitem.name">name</a></code></dt>
+ <dd>
+ Type:
+ <i>
+ string name</i>
+ </dd>
+ <dd>
+ Radio <code><a href="/zh-CN/docs/Mozilla/Tech/XUL/menuitem" title="menuitem">menuitem</a></code>s with the same name as put into a group. Only one <code><a href="/zh-CN/docs/Mozilla/Tech/XUL/menuitem" title="menuitem">menuitem</a></code> in each radio group can be checked at a time.</dd>
+</dl>
+<div class="noinclude">
+ <h3 id="Example" name="Example">Example</h3>
+ <pre>&lt;toolbox&gt;
+ &lt;menubar id="planets-menubar"&gt;
+ &lt;menu id="planet-menu" label="Planet"&gt;
+ &lt;menupopup&gt;
+ &lt;menuitem id="jupiter" label="Jupiter" type="radio" name="planet"/&gt;
+ &lt;menuitem id="saturn" label="Saturn" type="radio" name="planet" checked="true"/&gt;
+ &lt;menuitem id="uranus" label="Uranus" type="radio" name="planet"/&gt;
+ &lt;/menupopup&gt;
+ &lt;/menu&gt;
+ &lt;/menubar&gt;
+&lt;/toolbox&gt;
+</pre>
+ <h3 id="See_also" name="See_also">See also</h3>
+ <p><a href="cn/XUL/Attribute/name">name</a> and <a href="cn/XUL_Tutorial/More_Menu_Features#Adding_Checkmarks_to_Menus">menus in the XUL Tutorial</a></p>
+</div>
+<p></p>