class Sirens::Tabs

Component that wraps a TabsView.

Public Instance Methods

create_view() click to toggle source

Returns a StackView.

# File lib/components/containers/tabs.rb, line 9
def create_view()
    TabsView.new
end
on_component_added(child_component) click to toggle source

Adds the child_component to this component.

Calls superclass method
# File lib/components/containers/tabs.rb, line 16
def on_component_added(child_component)
    super(child_component)

    tab_label_text = child_component.props[:tab_label]

    view.set_tab_label_at(index: @child_components.size - 1, text: tab_label_text)
end