# Wijmo_Input.Icommand

## Content

<div class="content__tsd">
						<div style="display:flex;justify-content:space-between;align-items:center">
							<h1>
								ICommand Interface
							</h1>
						</div>
						<section class="tsd-comment">
							<div class="tsd-comment">
								<div class="lead">
									<p>Interface implemented by command objects.</p>
								</div>
								<p>For details, please see the <a href="../classes/wijmo_input.menu.html#command">Menu.command</a> property.</p>
							</div>
						</section>
						<section class="tsd-hierarchy">
							<h3>Heirarchy</h3>
							<ul class="tsd-hierarchy">
								<li>
									<span class="target">ICommand</span>
								</li>
							</ul>
						</section>
						<section class="tsd-index-group">
							<section class="tsd-index-panel">
								<div class="tsd-index-content">
									<section class="tsd-index-section ">
										<div class="title">
											<div class="gc_api_tree-item_icon_img_wrapper">
												<div class="gc_api_tree-item_icon_img" data-expand="true">
												</div>
											</div>
											<h3>
												Methods
											</h3>
										</div>
										<ul class="tsd-index-list">
											<li class="tsd-kind-method tsd-parent-kind-interface"><a href="wijmo_input.icommand.html#canexecutecommand" class="tsd-kind-icon">can<wbr>Execute<wbr>Command</a></li>
											<li class="tsd-kind-method tsd-parent-kind-interface"><a href="wijmo_input.icommand.html#executecommand" class="tsd-kind-icon">execute<wbr>Command</a></li>
										</ul>
									</section>
								</div>
							</section>
						</section>
						<section class="tsd-panel-group tsd-member-group ">
							<h2>Methods</h2>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
								<a name="canexecutecommand" class="tsd-anchor"></a>
								<h3><span class="tsd-flag ts-flagOptional">Optional</span> canExecuteCommand</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
									<li class="tsd-signature tsd-kind-icon">can<wbr>Execute<wbr>Command<span class="tsd-signature-symbol">(</span>parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Returns true if the command can be executed in the current app state.</p>
											</div>
											<p>If this method returns false, the corresponding menu option is
											disabled.</p>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>parameter: <span class="tsd-signature-type">any</span></h5>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
									</li>
								</ul>
							</section>
							<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
								<a name="executecommand" class="tsd-anchor"></a>
								<h3>executeCommand</h3>
								<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
									<li class="tsd-signature tsd-kind-icon">execute<wbr>Command<span class="tsd-signature-symbol">(</span>parameter<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
								</ul>
								<ul class="tsd-descriptions">
									<li class="tsd-description">
										<aside class="tsd-sources">
										</aside>
										<div class="tsd-comment">
											<div class="lead">
												<p>Executes the command with a given parameter.</p>
											</div>
											<p>The parameter passed to the command is defined by the value of the
												<a href="../classes/wijmo_input.menu.html#commandparameterpath">Menu.commandParameterPath</a> property of the current item.
												If the <a href="../classes/wijmo_input.menu.html#commandparameterpath">Menu.commandParameterPath</a> property is not specified,
											the parameter passed is the item itself.</p>
										</div>
										<h4 class="tsd-parameters-title">Parameters</h4>
										<ul class="tsd-parameters">
											<li>
												<h5>parameter: <span class="tsd-signature-type">any</span></h5>
											</li>
										</ul>
										<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
									</li>
								</ul>
							</section>
						</section>
					</div>