class Maglev::Uikit::List::ListComponent
def initialize(sort_form: nil, sortable_scope: nil, html_options: {})
def initialize(sort_form: nil, sortable_scope: nil, html_options: {}) @sort_form = sort_form @sortable_scope = sortable_scope @html_options = html_options end
def sort_form_data
def sort_form_data { sortable_target: 'sortableForm' }.merge(sort_form[:data] || {}) end
def sort_form_path
def sort_form_path sort_form&.fetch(:path) end
def sortable?
def sortable? sort_form_path.present? end