list_macros_available

NAML documentation   Watch a video
   Usages of this macro
... in macro_viewer.naml
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
<macro name="list_macros_available" parameters="id" requires="command_list">
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <style type="text/css">
            ul.dropdown-submenu {
                max-height:20em;
                overflow-y:auto;
            }
            ul.dropdown-submenu li {
                padding-right:1em;
            }
        </style>
    </n.put_in_head.>
    <ul id="[n.id/]" class="dropdown-submenu light-bg-color medium-border-color drop-shadow">
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_more_elements
Binary
Namespace: ListSequence
Parameters: n
>
            <then>
                <n.loop
Macro
Requires: sequence
Parameters: by, do
.current_command
Binary
Namespace: Commands
Parameters: do
.>
                    <li class="nowrap">
                        <a href="[n.command_path
Macro
Requires: command_info
/]"><n.name
Binary
Namespace: CommandInfo
/></a>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_empty
Binary
Namespace: BasicNamespace
Parameters: value
.required_namespaces
Binary
Namespace: CommandInfo
>
                            <then>
                                <n.tooltip
Macro
Parameters: use_title, delay, contents, position
. delay="50" position="right">Requires <n.required_namespaces
Binary
Namespace: CommandInfo
/></n.tooltip.>
                            </then>
                        </n.if.not.is_empty.required_namespaces>
                    </li>
                </n.loop.current_command.>
            </then>
            <else>
                <li class="weak-color" style="padding:.4em .8em">None</li>
            </else>
        </n.if.has_more_elements>
    </ul>
</macro>