Module: AppRail::Steps::Core::List

Included in:
Displayable
Defined in:
lib/app_rail/steps/core/list.rb

Instance Method Summary collapse

Instance Method Details

#ar_core_list_item(text:, id: self.id, detail_text: nil, section_name: nil, sf_symbol_name: nil, material_icon_name: nil, preview_url: nil) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/app_rail/steps/core/list.rb', line 7

def ar_core_list_item(text:, id: self.id, detail_text: nil, section_name: nil, sf_symbol_name: nil, material_icon_name: nil, preview_url: nil)
  {
    id: id,
    text: text,
    detailText: detail_text,
    sectionName: section_name,
    sfSymbolName: sf_symbol_name,
    materialIconName: material_icon_name,
    imageURL: preview_url
  }.compact
end

#ar_core_list_search_suggestion(text:, section_name:, id: self.id, sf_symbol_name: nil) ⇒ Object



19
20
21
# File 'lib/app_rail/steps/core/list.rb', line 19

def ar_core_list_search_suggestion(text:, section_name:, id: self.id, sf_symbol_name: nil)
  { id: id.to_s, text: text, sectionName: section_name, sfSymbolName: sf_symbol_name }.compact
end