Class ::xo::Table::TABLE::BulkAction

::xo::Table::TABLE::BulkAction[i] create ... \
           [ -CSSclass (default "") ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xo::Drawable[i]
  • subclass: ::xo::Table::YUIDataTableRenderer::BulkAction[i], ::xo::Table::TABLE3::BulkAction[i], ::xo::Table::TABLE2::BulkAction[i], ::xo::Table::BootstrapTableRenderer::BulkAction[i]
::xotcl::Class create ::xo::Table::TABLE::BulkAction \
     -superclass ::xo::Drawable

Methods (to be applied on instances)

  • CSSclass (setter)

  • render (scripted)

    #:msg [:serialize]
    html::th -class list {
      html::input -type checkbox -name __bulkaction -id __bulkaction  -title "Mark/Unmark all rows"
      ::html::CSRFToken
    }
    template::add_body_script -script [subst {
      document.getElementById('__bulkaction').addEventListener('click', function (event) {
        acs_ListCheckAll('${:name}', this.checked);
      }, false);
    }]
  • render-data (scripted)

    #:msg [:serialize]
    set name ${:name}
    set value [$line set [:id]]
    
    html::input -type checkbox -name $name -value $value  -id "$name---[string map {/ _} $value]"  -title "Mark/Unmark this row"