question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE] Add ability to specify tab ordering and custom tab labels

See original GitHub issue
Overview of the issue

My team would like to be able to set the order of tabs and customize the tab labels.

Motivation for or Use Case

We want to be able to make the Examples tab the leftmost tab, and we would also like to set the label for the tab to “Overview” instead of “Examples”.

Suggest a Fix

We would like to contribute this feature. Our plan is to allow the user to optionally pass in an array of tab data that determines the tab order and the tab labels. Although the existing disabling flags would be left in place for consumers who don’t want to provide a tabConfig, using this optional tabConfig parameter would obviate the need to disable individual tabs. Additionally, the same parameter could be extended later to allow the consumer to add custom tabs with custom content.

Note: If a consumer specifies a tab that a particular partial template does not currently contain, the tab would be skipped for that partial. For example, if the tabConfig includes a “Template” tab, the Template tab would only appear on the DOM for components and would not appear for classes, directives, injectables, interceptors, interfaces, modules, or pipes to maintain the current behavior.

Example usage:

tabConfig: [
    {
        id: "examples",
        label: "Overview" // customized label
    },
    {
        id: "info",
        label: "API" // customized label
    },
    {
        id: "source",
        label: "Source"
    }
]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
vogloblinskycommented, Mar 30, 2018

Yes for sure. May be i need to add support for configuration using a json file and not directly in the command line. See https://github.com/compodoc/compodoc/issues/379

0reactions
lock[bot]commented, Sep 30, 2019

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem. Why locking ? Having issues with the most up-to-date context.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add and Customize Tabs on Lightning Pages Using the ...
Customize a tab by clicking it in the properties pane. You can select a different standard label or click Custom and enter the...
Read more >
Set the tab order for controls - Microsoft Support
In the Navigation Pane, right-click the form and then click Design View. On the Design tab, in the Tools group, click Tab Order....
Read more >
Controlling Tab Order. - Oracle Communities
Can some one help in building a page where we can define custom tab ordering. We must be able to define an order...
Read more >
Configuring Custom Tabs - Vault Help
How to Create Custom Tabs · From the Tabs page, click Create. · Under Tab Details, enter a Label to appear as the...
Read more >
Tab Order | Form Designer | User Guide | Epi Info - CDC
Right click the canvas and select Tabs > Start New Tab Order from the context menu. Selecting this function will automatically set the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found