How to add a custom button inside Google Calendar? - javascript

Is it possible to have the feature in the image inside Google Calendar. I came across Gadget in Google Calendar, but I cannot figure out how to do it. Is there any way Google is allowing to add add-ons for calendar?

This is not possible. What you can do is create your own interface/client-side UI and then use the Calendar API to perform operations. You can also give the Calendar Apps Script if it suits your purpose.

Related

Google Calendar dashboard

I'm creating a web page dashboard that I will display on a screen in my house for my family to see, the dashboard will have a calendar, weather widget and 2 other widgets: Today's events and reminders from my Google calendars account.
The question is how can I get a feed to display a list of today's events and another list of today's reminders from Google calendar? This is a static page and it will be a read-only page so no events can be added from this page. I went to Google Calendar API but couldn't find anything, most of the documentation there is about creating apps that allows the creation and invitation to events but no current data displayed. Am I looking at the wrong place?
Use the Events.list to display all events related to you.
HTTP request
GET https://www.googleapis.com/calendar/v3/calendars/calendarId/events
Use the Try-it to test this now.
How the data is presented in your own UI is up to you.

I am trying to make a real-time auto-correct sort of add-on for Google Docs using Google Apps Script

I am trying to make a real-time auto-correct sort of add-on for Google Docs using Google Apps Script. I have written a lot of code, yet cannot figure out why the fixWords function does not work. Whenever I type a word, it does not auto-correct. This is my code:
function fixWords() {
var body = DocumentApp.getActiveDocument().getBody();
//The start of replacing...
body.replaceText("accomodate","accommodate");
body.replaceText("accomodation","accommodation");
body.replaceText("acheive","achieve");
body.replaceText("accross","across");
body.replaceText("agressive","aggressive");
body.replaceText("agression","aggression");
body.replaceText("apparantly","apparently");
body.replaceText("appearence","appearance");
body.replaceText("arguement","argument");
body.replaceText("assasination","assassination");
body.replaceText("basicly","basically");
}
Any suggestions? I am a newbie to Apps Script but have programming for three years.
There is something in Docs for automatic substitution. Under the tools, menu, click preferences. You can also add a personal dictionary.
If you could add a personal dictionary from code, that would probably work, but I don't see a way to do that.
There is no trigger or way to monitor a Google doc for every keystroke made. See the documentation:
Trigger Events
Something would need to trigger your function to run on every keystroke. In a spreadsheet, there is an onEdit() simple trigger that monitors every change to a cell. But there is nothing like that for Google Docs.
The only event type available to a Google Doc is open.

How to show full screen calender on webpage?

Hi i want to show full screen calender on webpage & i want to display the data on the cells of the calendar.Is there any way by which we can use this?
I don't want a date picker.
Does google calendar APi provide the same thing?
http://fullcalendar.io/ is a a JavaScript event calendar. Customizable and open source.
Have not tested this myself, but looks like something you could use in this case.
FullCalendar is a jQuery plugin that provides a full-sized, drag & drop event calendar like the one below. It uses AJAX to fetch events on-the-fly and is easily configured to use your own feed format. It is visually customizable with a rich API.
FullCalendar also got it's own tag here at SO with a couple of thousand questions, which makes it easier to find resources for common tasks.
After a quick Google search I found this, maybe one of those can solve your problem.

Jquery plugin with google calendar

I have a webpage in jquery mobile and now I am using the plugin "fullCalendar" for showing info from a google calendar.
I was asked about use another plugin instead of this one to be able of showing the day square in other color rather than shows the event title and hour.
I searched on internet but I haven't found any plugin for doing what I want.
Do you know one with this ability?
User eventRender callback to modify how the event is rendered (no text, different colour, anything else you need).

Add widget/controls within gmail Ui like boomerang/streak

I'm thinking of an idea to develop a widget lives within Gmail and do action on demand.
Like selecting a line of text clicking my button should create a task on a list (say asana.com)
I'm currently looking into https://developers.google.com/google-apps/gmail/contextual_gadgets
but wondering I'm heading right direction?
Check this one - http://www.streak.com/ they even have custom UI (in main view of gmail).
It would be really helpful if you share good resources and point the direction.
eg:
Gmail Contextual Gadgets (which work only in Google Apps Gmail, and not in "regular" #gmail.com Gmail) may not modify the Gmail UI - they are restricted to appearing in a rectangular area beneath a received message.
See www.wishery.com for an example.
To do the UI modification you illustrate, you must produce a browser extension - there are no native Google APIs to Gmail that'll help you (sadly!).
Also there are Sidebar Gadgets (for complex applications), like "Pipelines" of your screenshot.
Here you can find more info.
https://developers.google.com/google-apps/gmail/gadgets_overview

Categories

Resources