paging
This commit is contained in:
@@ -23,16 +23,15 @@ export const QnaListPage = () => {
|
||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||
|
||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||
if(onActionIntersect){
|
||||
if(entry.isIntersecting){
|
||||
console.log('Element is now intersecting with the root.');
|
||||
if(entry.isIntersecting){
|
||||
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
||||
if(onActionIntersect){
|
||||
callList();
|
||||
}
|
||||
else{
|
||||
console.log('Element is no longer intersecting with the root.');
|
||||
}
|
||||
}
|
||||
}
|
||||
else{
|
||||
console.log('Element is no longer intersecting with the root.');
|
||||
}
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@@ -139,4 +139,10 @@ main.home-main{
|
||||
}
|
||||
.bottom-tabbar{
|
||||
transition: all 0.5s ease-out;
|
||||
}
|
||||
|
||||
.inq-title-text{
|
||||
text-overflow: ellipsis;
|
||||
overflow-x: hidden;
|
||||
width: calc(100% - 18px);
|
||||
}
|
||||
Reference in New Issue
Block a user