Exactly what you think this is. Go wild.
Drag-and-drop support provided by Draggabilly by @desandro.
Chrome-style tabs in HTML/CSS.
Home Page: http://adamschwartz.co/chrome-tabs
License: MIT License
Exactly what you think this is. Go wild.
Drag-and-drop support provided by Draggabilly by @desandro.
What's the use for the transfrom
attribute? I thought it was a typo (as my tslint pointed out) and so renamed it to transform
, which had no effect on Chrome (but firefox accepts it, which led to some debugging).
It doesn't seem to be a proper HTML attribute as per spec, and leaving it out doesn't seem to have any effect either
Line 28 in c7a0123
There are lot of issues while calling the library using RequireJS style AMD.
I have created a pull request which fixes this by using the UMD pattern.
Our application has one permanent tab, the home tab if you will, and it does not require the close button on it. You can see the error in the console when the page opens. Simply leave out the line in your html that says:
<div class="chrome-tab-close"></div>
I resolved this as follows:
setTabCloseEventListener(tabEl) {
if (tabEl.querySelector('.chrome-tab-close') != null) {
tabEl.querySelector('.chrome-tab-close').addEventListener('click', _ => this.removeTab(tabEl))
}
}
hi, I am trying to integrate ui tour guide in chrome-tabs. for that, I tried with a package named 'ngx-joyride' which required an attribute name called "joyrideStep = 'name'".so while initing chrome tabs for all the chrome elements I manually append an attribute element.setAttributeNS(null,"joyrideStep", tab_id)
. while consoling chrome elements, attribute value updated but tour guide not showing in any of the chrome tabs. I also tried with a different tour package got the same result. not able to find where this issue is happening.
all_left_panel_tabs.forEach((element) => {
let tab_id = element.getAttribute('data-tab-id');
element.setAttributeNS(null,"joyrideStep", tab_id);
console.log(element);
})
this.joyrideService.startTour(
{ steps: ['backup','bookmarks','rvclean','workspace','settings','comments',],
showCounter: true,
themeColor: '#5a5e60'
} // Your steps order
)
"@angular/cli": "^6.2.9"
"chrome-tabs": "^5.4.0"
thanks !.
Hey, could you please give some example or instructions how to implement this?
Potential solution: when removing tab, first sort it to the far right but make it inactive and opacity 0
(triggering the cascade animation), then actually remove it.
I'm trying to disable the draggability of the tabs because I don't need it.
Hi there,
Thanks for the awesome work. I'm using this plugin to create multi window inside my website likely to create tabs with window content in chrome browser. I have created tabs and the are tab contents successfully but the tab contents are not positioning properly (ie) not started from starting position of the page.
Problem - 1:
The tab contents started from where the tabs are created as it is in plugin demo page.
Problem-2:
The tab contents not positioning properly, If I close the tab previous to the current tab or next to the current tab.
You can check the behaviour on the actual Chrome:
You will notice that the X
is always under the pointer and the width is not changing until you move the mouse :)
I’ve received some inquiries about creating a React-compatible. This issue is here to track interest, and find an author/shepherd.
What should I modify to add tabs from right to left ?
When moving the right tab to the left, the previous left tab will move to the right. This is correct, but no animation.
This is a great project and great replacement for electron-tabs, but how does one put content before the first tab (e.g a static logo or text) or some buttons on the far right of the tab bar without disturbing the layout/dragging process ?
does anybody know ?
How to add iframe content into tab dynamically
Hi, Why your repository doesn't have master branch ? is there a problem about master branch or something else ?
Hi, really cool what you've done!
I was wondering why using svg instead of just css for the tab shape? I'm not an expert in CSS, but I think it's accomplishable with CSS too. Anyhow, there's maybe no special reason for using svg, but just got curious about it.
Thanks!
Firefox: v61.0.1
Chrome: v67
Just look around for errors and bugs and this time I find some more stuff for fix. Just look every time when open new tab and how the "style" change to Chrome tabs. The letters must hide and tabs must styled as triangle after x (number of tabs e.g. x = 40 or 50 tabs).
vs
https://github.com/adamschwartz/chrome-tabsHi im using your chrome tab extension in my application i get it from src-works im using minified version of the library i want to add some features to it could you give me the right source code i didn't find in your github account
this.$chromeTabs = $('.chrome-tabs').chromeTabs({ allowDoubleClick: false});
this.$chromeTabs._ = this.$chromeTabs.data('chromeTabs');
this.$chromeTabs._.addTab({ url: 'http://akveo.com/ngx-admin/pages/forms/buttons', title: 'Dashboard', allowClose: false });
this is the sample usage
When the tabs are reordered, how can we detect the new order?
Could these tabs bend to being stacked? Tab stacking or Tab grouping are the buzz words.
See:
https://www.youtube.com/watch?v=drCAiTSAYdc
Also:
https://www.youtube.com/watch?v=eaaYp8544bs
Would be a nice feature indeed! :)
I would really like a list of events/trigger. How to trigger something if tab is created, moved or closed...?
In the screenshot above (using Chrome as browser), I set...
.chrome-tabs {
background: red;
}
...to emphasize the problem, and you may need to zoom in/resize the browser to reproduce the issue.
I was able to remove the bleeding vertical line by removing the inline width="50%"
attribute in the "chrome-tab-geometry-right/left" <svg>
HTML elements (or change it to something greater than 50%, but I think these width and height attributes can be removed entirely - their width and height percentages are already being set in the CSS?).
Not too sure about the bottom line.
Hi,
I like to add the mock-browser-content inside each tab created instead of having the mock-browser-content statically standing outside of chrome tabs created.
But styling issues happening when trying to add inside the tabs. It would be helpful if you add that functionality.
Hi there ,
Tab content set to the full width using,
$('.chrome-tab-content').width(document.documentElement.clientWidth);
but the tab content start from the left position 0 of corresponding parent element.
I tried to fix the position of the tab content starts from and take entire space to visible the current tab using,
if ($('.chrome-tab-current').offset().left !== 69) {
var vleft = $('.chrome-tab-current').children().eq(4).children().offset().left;
$('.chrome-tab-current').children().eq(4).children().css({ 'position': 'absolute', 'left': '-' + (vleft - 50) + 'px', 'top': '26px', 'z-index': '1' });
} else {
console.log('Offset left not matched.');
}
Now the positioning issue solved by setting the positioning manually. But when closing the prev tabs, the position of sibling tabs went outside of left due to -posision applied to fix the full width.
I hope you understand. If Im not clear, pls check the image posted earlier.
tab drag out from the tabbar that time it should be open with new window but tab state should be same
Hi look after the chrome browser tabs. The content of the tab takes full width and other tab contents not visible. Also the contents not overlapping with another tab contents when close the tabs. Only the current tab or active tab contents only visible to the user.
I request you to enhance the plugin feature.
Link doesn't work - is there an alternative way to access the files
not working in non webkit browser
@adamschwartz Thanks for all of your work on this project!
FYI: I forked your project into a new variation of Chrome Tabs, and I built an NPM module.
Hi there,
Thanks for the awesome work. The plugin is awesome but have minimal feature. If get into the development with your plugin lot more needed. At least basic feature should be there is appreciable.
I have found some features not there,
Pls see my work with your plugin, I'm facing this issues. I have modified as my need but still having the problem when closing the tabs.
I have created tabs and the are tab contents successfully but the tab contents are not positioning properly (ie) not started from starting position of the page.
Problem - 1:
The tab contents started from where the tabs are created as it is in plugin demo page.
Problem-2:
The tab contents not positioning properly, If I close the tab previous to the current tab or next to the current tab.
Thanks.
See #6
I am looking for a chrome extension which allows me to automatically sort and group Chrome tabs...VERTICALLY. (not horizontally). I have just spent 10 hours trialing every tab organizer extension I could find, and none of them have this feature. for example, if I have 10 tabs open "domain1.com" it will nicely organize them into a vertical bucket, drop down etc, is that possible yet with Chrome? If you find something like this, can you message me on skype? SMARTCHOICEWEB
What license is this available under?
Please provide some information on installation and usage of this tab in an application.
I noticed this with the tab hover opacity becoming active and "staying" active on a tab, but similar sticky behavior can be seen on the tab close button.
The easiest way to reproduce is to load up the demo as a mobile device, click once on the Google tab, then click and drag the Facebook tab, and the hover effect stays on the Google tab. Basically, do a solid click on one tab, and then a quick click and drag on another tab.
Potentially encapsulate the hover styles in a CSS media query?
http://www.javascriptkit.com/dhtmltutors/sticky-hover-issue-solutions.shtml
Mobile click don't emit 'activeTabChange' and other events.
Does it work with the contextmenu? That would nail it for me!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.