across-tabs icon indicating copy to clipboard operation
across-tabs copied to clipboard

Allow passing custom id

Open ullalaaron opened this issue 6 years ago • 1 comments

Is it possible to pass a custom id to the tab to be opened? Looking at the source code it looks like the id is always generated from scratch...I would like to submit a PR in order to allow the parent to specify a tabId through the config object. What do you think?

ullalaaron avatar Jul 29 '19 10:07 ullalaaron

Hi @ullalaaron No, it is not possible to provide a custom id. Though you can provide a custom name to the opened window by setting window.name or window.windowName. Check this code - https://github.com/wingify/across-tabs/blob/master/src/tab.js#L34

If there's something which can not be done via setting different name, I'll be happy to have custom id support via config.

softvar avatar Jul 31 '19 12:07 softvar