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 ='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

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