Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Tab Limit #136

Open
joshuakoh1 opened this issue Feb 6, 2022 · 1 comment
Open

Tab Limit #136

joshuakoh1 opened this issue Feb 6, 2022 · 1 comment

Comments

@joshuakoh1
Copy link

Is there a way to set a tab limit? I could bind a function to tab-added and check the length of tabGroup.getTabs() and force tab.close() but it doesn't seem the most elegant of solutions

@brrd
Copy link
Owner

brrd commented Feb 7, 2022

No. Let's keep this thread as a feature request.

I see many way to implement this:

  • add a tabLimit option (not so elegant IMO),
  • add a way to abort tab opening into the related event,
  • add a tabGroup method to freeze the creation of new tabs,
  • add a tabGroup option to filter tabs before it is created.

@brrd brrd added enhancement and removed question labels Feb 7, 2022
@brrd brrd changed the title Tab Limit? Tab Limit Feb 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants