⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 api.html

📁 很漂亮的javascript菜单
💻 HTML
📖 第 1 页 / 共 4 页
字号:
		This is a menu item that has a check box next to it. When clicked the check box is toggled
	</p><h3>Syntax</h3><p><code>

	new CheckBoxMenuItem(<span class="methodArgument">sLabelText</span>&nbsp;[, <span class="methodArgument">bChecked</span>&nbsp;[, <span class="methodArgument">fAction</span>&nbsp;[, <span class="methodArgument">oSubMenu</span>]]])</code></p><h3>Parameters</h3><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td><code>sLabelText</code></td><td><code>String</code></td><td>The text to show on the menu item</td></tr><tr><td><code>bChecked</code></td><td><code>Boolean</code></td><td><span class="optional">Optional.</span> Whether the item should be checked or not</td></tr><tr><td><code>fAction</code></td><td><code>Function or String</code></td><td><span class="optional">Optional.</span> 
				The function to call when the menu item is clicked. If this is a string then it is treated as an URI.
			</td></tr><tr><td><code>oSubMenu</code></td><td><code>Menu</code></td><td><span class="optional">Optional.</span> The Menu object to use as a submenu</td></tr></tbody></table><h3>Static Methods</h3><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Static Fields</h3><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td colspan="3">None.</td></tr></tbody></table><h3>Methods</h3><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Fields</h3><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td><code>checked</code></td><td><code>Boolean</code></td><td>Whether the item is checked or not</td></tr></tbody></table><h3>Events</h3><table><thead><tr><td>Name</td><td>Descripton</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Remarks</h3><p>
			None.
		</p><h2 id="RadioButtonMenuItem">RadioButtonMenuItem</h2><p>This class extends
		<code><a href="#MenuItem">MenuItem</a></code>
		and therefore all methods and field available for
		<code><a href="#MenuItem">MenuItem</a></code>
		are also available for <code>RadioButtonMenuItem</code>.</p><p>
		This is a menu item that has a check box next to it. When clicked the check box is toggled
	</p><h3>Syntax</h3><p><code>

	new RadioButtonMenuItem(<span class="methodArgument">sLabelText</span>&nbsp;[, <span class="methodArgument">bChecked</span>&nbsp;[, <span class="methodArgument">sRadioGroupName</span>&nbsp;[, <span class="methodArgument">fAction</span>&nbsp;[, <span class="methodArgument">oSubMenu</span>]]]])</code></p><h3>Parameters</h3><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td><code>sLabelText</code></td><td><code>String</code></td><td>The text to show on the menu item</td></tr><tr><td><code>bChecked</code></td><td><code>Boolean</code></td><td><span class="optional">Optional.</span> Whether the item should be checked or not</td></tr><tr><td><code>sRadioGroupName</code></td><td><code>String</code></td><td><span class="optional">Optional.</span> This is the name of the logical radio group that the menu item should belong to. Notice that only one item can be checked at the same time in the same group. Groups are local to the current menu.</td></tr><tr><td><code>fAction</code></td><td><code>Function or String</code></td><td><span class="optional">Optional.</span> 
				The function to call when the menu item is clicked. If this is a string then it is treated as an URI.
			</td></tr><tr><td><code>oSubMenu</code></td><td><code>Menu</code></td><td><span class="optional">Optional.</span> The Menu object to use as a submenu</td></tr></tbody></table><h3>Static Methods</h3><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Static Fields</h3><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td colspan="3">None.</td></tr></tbody></table><h3>Methods</h3><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Fields</h3><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td><code>checked</code></td><td><code>Boolean</code></td><td>Whether the item is checked or not</td></tr><tr><td><code>radioGroupName</code></td><td><code>String</code></td><td>This is the name of the logical radio group that the menu item should belong to. Notice that only one item can be checked at the same time in the same group. Groups are local to the current menu.</td></tr></tbody></table><h3>Events</h3><table><thead><tr><td>Name</td><td>Descripton</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Remarks</h3><p>
			None.
		</p><h2 id="MenuSeparator">MenuSeparator</h2><p>This class extends
		<code><a href="#MenuItem">MenuItem</a></code>
		and therefore all methods and field available for
		<code><a href="#MenuItem">MenuItem</a></code>
		are also available for <code>MenuSeparator</code>.</p><p>
		This is a menu item that has a check box next to it. When clicked the check box is toggled
	</p><h3>Syntax</h3><p><code>

	new MenuSeparator()</code></p><h3>Parameters</h3><h3>Static Methods</h3><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Static Fields</h3><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td colspan="3">None.</td></tr></tbody></table><h3>Methods</h3><table><thead><tr><td>Name</td><td>Description</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Fields</h3><table><thead><tr><td>Name</td><td>Type</td><td>Descripton</td></tr></thead><tbody><tr><td colspan="3">None.</td></tr></tbody></table><h3>Events</h3><table><thead><tr><td>Name</td><td>Descripton</td></tr></thead><tbody><tr><td colspan="2">None.</td></tr></tbody></table><h3>Remarks</h3><p>
			None.
		</p><h2 id="MenuBar">MenuBar</h2><p>This class extends
		<code><a href="#Menu">Menu</a></code>
		and therefore all methods and field available for
		<code><a href="#Menu">Menu</a></code>
		are also available for <code>MenuBar</code>.</p><p>
		The class used to create menu bars

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -