Comments (4)
from floatthead.
Top can be a number or a function that returns top. Make it be a function and then you just need to figure out which mode you're in. Possibly check the window clientWidth to determine that
could you please provide me with example? I am not very familiar with javascript
from floatthead.
Sure, something like this (i did not run this code):
$table.floatThead({
responsiveContainer: function($table){
return $table.closest(".table-responsive");
},
top: function(){
// use your responsive breakpoint here instead
if(document.body.clientWidth <= 500){
return 55;
} else {
return 105;
}
}
});
from floatthead.
You're welcome
from floatthead.
Related Issues (20)
- TypeScript Definitions HOT 6
- Floating thead hides its origin on overscroll? HOT 5
- Request: add extra class to the top floated element when its active HOT 3
- Strategy for handling sticky position from top when that position isn't constant HOT 11
- Compatibility with table sorting plugins ? HOT 2
- Wrong setHeaderHeight behaviour HOT 9
- Header never prints using jquery.floatThead HOT 2
- Browser search doesn't scroll to position of result HOT 2
- What is the best way to adjust column widths? HOT 3
- [enhancement] keep input focus during reflow
- Not working
- TypeScript 4.3.5 error with version 2.2.2 HOT 7
- In your official documentation, please explain you MUST use a JQuery selector, not regular JavaScript HOT 5
- TypeScript 4.3.5 error with version 2.2.3 HOT 2
- Table is not recalulated correctly after hiding/showing some columns HOT 6
- Rendering issue when multiple <table> are contained in a `overflow: auto;` div HOT 7
- Fix Multiple THEAD in one single Table HOT 3
- Could you please provide an example in React HOT 2
- fthfoot > visible (padded) with Bootstrap 5.3.X
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 floatthead.