Sha256: 580cefc40dd8ea8732bcdbdcddcbf83b3949521d3800c68ec1dee6c964ea0cdf

Contents?: true

Size: 461 Bytes

Versions: 3

Compression:

Stored size: 461 Bytes

Contents

:ruby
  scope = options.delete(:scope)
  data_attributes = {
    'acts-as-list-item':                true,
    'acts-as-list-item-uid':            resource.to_param,
    'acts-as-list-item-on-drop-target': url_for([:reposition, resource])
  }
  data_attributes['acts-as-list-item-scope'] = "#{scope}-#{resource.send(scope)}" if scope.present?

%span.btn.btn-xs.btn-default.acts-as-list-item{ data: data_attributes }
  %span.glyphicon.glyphicon-sort.fas.fa-sort

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails-add_ons-3.0.0.pre1 app/views/component/table/body_cells/_acts_as_list.haml
rails-add_ons-2.2.1 app/views/component/table/body_cells/_acts_as_list.haml
rails-add_ons-2.2.0 app/views/component/table/body_cells/_acts_as_list.haml