%3 ::xowiki::MenuItem ::xowiki::MenuItem init render ::xowiki::MenuComponent ::xowiki::MenuComponent ::xowiki::MenuItem->::xowiki::MenuComponent ::xowiki::Menu ::xowiki::Menu render ::xowiki::Menu->::xowiki::MenuComponent ::xowiki::BootstrapNavbarDropzone ::xowiki::BootstrapNavbarDropzone render ::xowiki::BootstrapNavbarDropzone->::xowiki::MenuComponent ::xo::tdom::Object ::xo::tdom::Object ::xowiki::MenuComponent->::xo::tdom::Object ::xo::tdom::AttributeManager ::xo::tdom::AttributeManager ::xo::tdom::Object->::xo::tdom::AttributeManager ::xo::OrderedComposite ::xo::OrderedComposite ::xo::tdom::Object->::xo::OrderedComposite

Class ::xowiki::BootstrapNavbarDropzone

::xowiki::BootstrapNavbarDropzone[i] create ... \
           [ -disposition (default "File") ] \
           [ -file_name_prefix (default "") ] \
           [ -href (default "#") ] \
           [ -label (default "DropZone") ] \
           [ -text (default "") ]

Defined in

Class Relations

  • class: ::xo::tdom::Class[i]
  • superclass: ::xowiki::MenuComponent[i]
::xo::tdom::Class create ::xowiki::BootstrapNavbarDropzone \
     -superclass ::xowiki::MenuComponent

Methods (to be applied on instances)

  • render (scripted, public)

     <instance of xowiki::BootstrapNavbarDropzone[i]> render

    doku

    Testcases:
    create_folder_with_page, create_workflow_with_instance
    if {${:href} ni {"" "#"}} {
      html::li {
        html::form -method "post" -enctype "multipart/form-data"  -style "display: none;"  -id "js-upload-form" {
              html::div -class "form-inline" {
                html::div -class "form-group" {
                  html::input  -type "file"  -name {files[]}  -id "js-upload-files"  -data-file_name_prefix ${:file_name_prefix}  -data-url ${:href}  -data-disposition ${:disposition}  -multiple multiple
                }
                html::button -type "submit" -class "btn btn-sm btn-primary" -id "js-upload-submit" {
                  html::t ${:text}
                }
                ::html::CSRFToken
              }
            }
        html::div -class "upload-drop-zone" -id "drop-zone" {
          html::span {html::t ${:label}}
          html::div -class "progress" {
            html::div -style "width: 0%;" -class "progress-bar" -id dropzone-progress-bar {
              html::span -class "sr-only" {html::t ""}
            }
          }
        }
      }
      :js
    }

Variables

::xowiki::BootstrapNavbarDropzone set __default_metaclass ::xotcl::Class
::xowiki::BootstrapNavbarDropzone set __default_superclass ::xotcl::Object