dropdown

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
858
859
860
861
862
863
864
865
866
867
868
869
870
871
<macro name="dropdown" dot_parameter="options" parameters="id, text, title, element, loadOnClick">
    <span id="dd_[n.id/]"></span>
    <script type="text/javascript">
        var dropdown = new NabbleDropdown("<n.id/>", "<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.text/>","<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.title/>");
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.element>
            <then>dropdown.customButton("<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.element/>");</then>
        </n.if.not.is_null.element>
        <n.options/>
        dropdown.build('dd_<n.id/>');
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_empty
Binary
Namespace: BasicNamespace
Parameters: value
.loadOnClick>
            <then>dropdown.loadOnClick('<n.loadOnClick/>' + Nabble.getClientID() + '&_=' + Math.floor(Math.random()*999999));</then>
        </n.if.not.is_empty.loadOnClick>
    </script>
</macro>