Comments (3)
Would love to see this as well. If not a typical ID, maybe the URL could read from a data-tab-id
param
from uikit.
I also really need this feature
from uikit.
My solution. I set the specific id for needed li element (for example, anchor):
<ul class="uk-tab" data-uk-tab="{connect:'#tab-content'}">
<li><a href="#">TITLE 1</a></li>
<li id="anchor"><a href="#">TITLE 2</a></li>
<li><a href="#">TITLE 3</a></li>
</ul>
Then, an external link added an anchor with this id:
site.com/link#anchor
Finally, a small js code on a page with a tab:
jQuery(document).ready(function(){
var hash = location.hash.substr(1);
if (hash === 'reviews') {
jQuery('#reviews').addClass('uk-active');
}});
It works!
from uikit.
Related Issues (20)
- The sticky component isn't working inside the modal component.
- When will it be updated to v3.17.12 so that the application can catch up on some bugs?
- uk-video can´t pause youtube\vimeo video inside lightbox
- *tlester
- Cannot compile on Windows HOT 2
- No Tests with custom styles generated
- Cannot scroll horizontally overflowing elements in modals on touch devices HOT 1
- Please add a selector to uk-lightbox HOT 4
- Stacked off-canvas with overlay scrolling body HOT 2
- Remove Pagekit icon HOT 1
- Too generic to set SVG's height in Uikit
- Not all CSS is scoped when using 'scoped mode' to avoid conflicts in large project code bases HOT 1
- Custom "uk-slide-active" for any one card/ele in slider
- Timeout in Slider when loading WebP HOT 3
- Sortable component conflict with page scrolling (default behaviour) on laptops with touchscreen HOT 1
- add a button (toggle) Play / Pause for Slideshow HOT 2
- Lightbox Autoplay not working but work starts when drug an item.
- Bluesky icon? HOT 1
- UIkit CSS issues HOT 2
- uk-grid inside uk-section HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from uikit.