class Avo::Resources::Items::TabGroup
def group_param
def group_param "tab-group_#{id}" end
def id
If not, we'll use the name.
The user might assign an id to a group.
def id return @id if @id.present? return @name.parameterize if @name.present? index end
def initialize(index: 0, view: nil, style: nil, title: nil, description: nil, id: nil, name: nil, **args)
def initialize(index: 0, view: nil, style: nil, title: nil, description: nil, id: nil, name: nil, **args) @index = index @items_holder = Avo::Resources::Items::Holder.new @view = Avo::ViewInquirer.new view @style = style @title = title @description = description @id = id @name = name @args = args @visible = args[:visible] post_initialize if respond_to?(:post_initialize) end
def turbo_frame_id
def turbo_frame_id "#{Avo::Resources::Items::TabGroup.to_s.parameterize} #{index}".parameterize end