Created
March 2, 2022 11:38
-
-
Save daybrush/f21876ae248e90f0c81920152b9706f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Conveyer from "@egjs/conveyer"; | |
const conveyer = new Conveyer(".items"); | |
// Reads reactive properties | |
conveyer.isReachStart; | |
conveyer.isReachEnd; | |
// Subscribes reactive properties | |
conveyer.subscribe("isReachStart", isReachStart => { | |
console.log(isReachStart); | |
}); | |
conveyer.subscribe("isReachEnd", isReachEnd => { | |
console.log(isReachEnd); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment