class Avo::Index::Ordering::ButtonComponent
def initialize(resource:, direction:, svg: nil, reflection: nil)
def initialize(resource:, direction:, svg: nil, reflection: nil) @resource = resource @reflection = reflection @direction = direction @svg = svg end
def order_path(args)
def order_path(args) Avo::App.view_context.avo.reorder_order_path(resource.route_key, resource.model.to_param, **args) end
def render?
def render? order_actions[direction].present? end