list_macros_available

NAML documentation   Watch a video
   Usages of this macro
... in macro_viewer.naml
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
<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>