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.

[CustomList] Mehtod to list events using input custom options

See original GitHub issue

Besides listUpcomingEvents it would be nice to have a method listEvents that receive the list query options as parameter, enabling custom fetches. The method could be like that:

/**
   * List all events in the calendar queried by custom query options
   * See all available options here https://developers.google.com/calendar/v3/reference/events/list
   * @param {object} queryOptions to see
   * @param {string} calendarId to see by default use the calendar attribute
   * @returns {any}
   */
  public listEvents(
    queryOptions: object,
    calendarId: string = this.calendar
  ): any {
    if (this.gapi) {
      return this.gapi.client.calendar.events.list({
        calendarId,
        ...queryOptions
      });
    } else {
      console.log('Error: this.gapi not loaded');
      return false;
    }
  }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bateradtcommented, Mar 3, 2021

I will review tomorrow morning.

1reaction
clariceabreucommented, Mar 3, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML select form with option to enter custom value
HTML5 has a built-in combo box. You create a text input and a datalist . Then you add a list attribute to the...
Read more >
Custom events in JavaScript: A complete guide
In this tutorial, you can learn how to create custom events in JavaScript for your application to enhance the user experience.
Read more >
Feature Guide: Custom List | Webex Events : Knowledge Base
From the Custom List page, click the New Item button to add a new item, or click the Categories tab to set up...
Read more >
Creating a To-do List with Custom Events | Developer Quick ...
In this Quick Take, we discuss how to communicate across the DOM using Custom Events. Creating a ToDo list will show us how...
Read more >
list-style-type - CSS: Cascading Style Sheets - MDN Web Docs
The list-style-type CSS property sets the marker (such as a disc, character, or custom counter style) of a list item element.
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