Sha256: 1e04220adee690d6c0ad5697142df405320589bfa54e8c9a5b9698a0c4a075f7
Contents?: true
Size: 581 Bytes
Versions: 67
Compression:
Stored size: 581 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.to_param, **args) end end
Version data entries
67 entries across 67 versions & 1 rubygems