Method: Primer::Beta::NavList::Group#initialize

Defined in:
app/components/primer/beta/nav_list/group.rb

#initialize(selected_item_id: nil, **system_arguments) ⇒ Group

Returns a new instance of Group.

Parameters:

  • selected_item_id (Symbol) (defaults to: nil)

    The ID of the currently selected item. Used internally.

  • system_arguments (Hash)

    <%= link_to_system_arguments_docs %>

[View source]

57
58
59
60
61
62
# File 'app/components/primer/beta/nav_list/group.rb', line 57

def initialize(selected_item_id: nil, **system_arguments)
  @system_arguments = system_arguments
  @selected_item_id = selected_item_id

  super(**@system_arguments)
end