paging
This commit is contained in:
@@ -23,16 +23,15 @@ export const QnaListPage = () => {
|
|||||||
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
const onIntersect: IntersectionObserverCallback = (entries: Array<IntersectionObserverEntry>) => {
|
||||||
|
|
||||||
entries.forEach((entry: IntersectionObserverEntry) => {
|
entries.forEach((entry: IntersectionObserverEntry) => {
|
||||||
if(onActionIntersect){
|
|
||||||
if(entry.isIntersecting){
|
if(entry.isIntersecting){
|
||||||
console.log('Element is now intersecting with the root.');
|
console.log('Element is now intersecting with the root. [' + onActionIntersect + ']');
|
||||||
|
if(onActionIntersect){
|
||||||
callList();
|
callList();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
console.log('Element is no longer intersecting with the root.');
|
console.log('Element is no longer intersecting with the root.');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -140,3 +140,9 @@ main.home-main{
|
|||||||
.bottom-tabbar{
|
.bottom-tabbar{
|
||||||
transition: all 0.5s ease-out;
|
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