Get calendar value

Using the code from vue kitchen sink, I am successfully making an inline calendar on my page (with a range), using this:

self.calendarInline = app.calendar.create({ containerEl: '#demo-calendar-inline-container',

However when I’m trying to read the values in a function with the following:

var calendar = this.app.calendar.get('demo-calendar-inline-container'); // Get the calendar instance
var values = calendar.getValue();   //Returns current calendar value

I receive this error:

Cannot read property 'calendar' of undefined

Any idea on how to access this?

This.app=>this.$app

Edit: I’m stupid. It’s: this.calendarInline.getValue();