menu_parent_options

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
<macro name="menu_parent_options" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('parentOptions', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.parent_options_link
Macro
Requires: node
Parameters: text, title, class
/>', 'display:none');
        </then>
        <else>
            <n.set_local_node
Macro
Parameters: node
.this_node
Binary
Namespace: NodeNamespace
Parameters: do
/>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_move
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
>
                <then>
                    NabbleDropdown.show('parentOptions');
                </then>
            </n.if.visitor.can_move.local_node>
        </else>
    </n.if.is_in_command>
</macro>