question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Get Month on Scroll

See original GitHub issue

I am using this code… I just want to know if we can use onScroll method to get the current visible month?

<Agenda
    items={{
        '2018-04-18': [{text: 'item 1 - any js object'}],
        '2018-04-19': [{text: 'item 2 - any js object'}],
        '2018-04-20': [],
        '2018-04-21': [{text: 'item 3 - any js object'},{text: 'any js object'}],
    }}
    renderItem={this.renderItem.bind(this)}
    renderEmptyDate={this.renderEmptyDate.bind(this)}
    rowHasChanged={(r1, r2) => {return r1.text !== r2.text}}
/>

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
Monte9commented, Apr 24, 2018

This is something I am wondering about as well. I love this library and was able to get up and running pretty quickly. Here is what my current calendar implementation looks like:

screen shot 2018-04-24 at 2 28 00 pm

and I am using the <CalendarList /> component with horizontal and pagingEnabled props.

Hence in my use case (see screenshot above), I would like to display a unique monthly summary for every month. Hence on scroll I need a callback which returns a month string.

Is this currently possible? I cound’t find anything on the docs, but please let me know if I missed something.

1reaction
skurgansky-sugarcrmcommented, Apr 26, 2018

I’m using loadItemsForMonth callback for this but it is triggered twice. For the first time the result is correct. But on the second i get previous month. Looking for solution.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SwiftUI Calendar on scroll get current month - Stack Overflow
Im trying to get the current month when the calendar is being scrolled. My goal is to have the header with the current...
Read more >
Excel Select Date With Scroll Bar - Contextures
In this example, the Scroll Bar will change the end date in a summary report, so you can scroll through the months, and...
Read more >
Scroll Through Dates In Calendar Tool
Scroll Through Dates In Calendar Tool. Instead of scrolling through months and months to find the correct date, if you click on the...
Read more >
Date time scroller demos for web and mobile | Mobiscroll
Date time picker scroller & dropdown demos for mobile and desktop web with date, time, validation, min/max & more. Last update: Dec 19,...
Read more >
How can i use month scroll with week mode feature. · Issue #313
when i scrolling that time two time week days coming when two month combine come. ... i think two pages coming. ... how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found