Files
Shell/docs/functions/this.html
T
2024-10-07 21:03:12 +03:00

24 lines
1.0 KiB
HTML

<h5>THIS</h5>
<br>
<p>This namespace contains functions that are used with the current item in the context menu.</p>
<br>
<section id="syntax" class="my-5">
<h5>Syntax</h5>
<pre><code>
this.id // Returns the ID of the current item
this.name // Returns the name of the current item
this.name // Returns the length of the current item's name
this.name.length // Returns the length of the current item's name
this.title.len // Returns the title of the current item
this.title.length // Returns the length of the current item's title
this.title.len // Returns the length of the current item's title
this.type // Returns the type of the current item [item = 0, menu = 1, separator = 2]
this.sys // Returns true if the current item is a system item
this.checked // Returns true if the current item is checked
this.disabled // Returns true if the current item is disabled
this.pos // Returns the position of the current item in the context menu
</code></pre>
</section>