Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
493 B
Raw Blame
<%# locals: (label:, list: "sortable-list") %>
<%= render DS::Button.new(
  variant: :icon,
  icon: "grip-vertical",
  size: :sm,
  class: "ml-2 shrink-0 cursor-grab active:cursor-grabbing",
  aria_label: label,
  data: {
    rules_filter_target: "handle",
    action: %w[touchstart->touchStart touchmove->touchMove touchend->touchEnd touchcancel->touchCancel contextmenu->suppressContextMenu keydown->handleKeyDown]
      .map { |binding| binding.sub("->", "->#{list}#") }.join(" ")
  }
) %>