Sha256: a244dbd0b05c2c92fbd82a65998597ece3a690eff3ad3633d109f84f04832539
Contents?: true
Size: 575 Bytes
Versions: 75
Compression:
Stored size: 575 Bytes
Contents
# frozen_string_literal: true class Avo::Index::Ordering::ButtonComponent < Avo::Index::Ordering::BaseComponent attr_accessor :resource attr_accessor :reflection attr_accessor :direction attr_accessor :svg def initialize(resource:, direction:, svg: nil, reflection: nil) @resource = resource @reflection = reflection @direction = direction @svg = svg end def render? order_actions[direction].present? end def order_path(args) Avo::App.view_context.avo.reorder_order_path(resource.route_key, resource.model.id, **args) end end
Version data entries
75 entries across 75 versions & 1 rubygems