From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- .../tech/xul/attribute/menuitem.name/index.html | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 files/zh-cn/mozilla/tech/xul/attribute/menuitem.name/index.html (limited to 'files/zh-cn/mozilla/tech/xul/attribute/menuitem.name') 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 +--- +
+ « XUL Reference home
+
+
+ name
+
+ Type: + + string name +
+
+ Radio menuitems with the same name as put into a group. Only one menuitem in each radio group can be checked at a time.
+
+
+

Example

+
<toolbox>
+  <menubar id="planets-menubar">
+    <menu id="planet-menu" label="Planet">
+      <menupopup>
+        <menuitem id="jupiter" label="Jupiter" type="radio" name="planet"/>
+        <menuitem id="saturn" label="Saturn" type="radio" name="planet" checked="true"/>
+        <menuitem id="uranus" label="Uranus" type="radio" name="planet"/>
+      </menupopup>
+    </menu>
+  </menubar>
+</toolbox>
+
+

See also

+

name and menus in the XUL Tutorial

+
+

-- cgit v1.2.3-54-g00ecf