Skip to content

Feature: need a way to preselect a tab. #18

Open
@ilyavf

Description

@ilyavf

So far, I found only this way to programmatically select a tab:

<bit-tabs  {(panels)}="panels" {(active)}="activePanel">

VM:

this.attr('activePanel', self.viewModel.attr('panels.1'));
this.attr('panels.0.active', false);
this.attr('panels.1.active', true);

It would be nice to just set the active attribute on a desired tab to preselect it:

<bit-tabs>
  <bit-panel title="First"></bit-panel>
  <bit-panel title="Second" active="true"></bit-panel>
</bit-tabs>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions