add initial support for tailwindcss (#134)

Add support for and demo using tailwindcss
This commit is contained in:
Pencho BELNEYSKI
2022-11-18 05:37:00 +01:00
committed by GitHub
parent f4371469fc
commit 4718f4b870
14 changed files with 2617 additions and 161 deletions
+8
View File
@@ -3,6 +3,7 @@ export const onOpen = () => {
.createMenu('My Sample React Project') // edit me!
.addItem('Sheet Editor', 'openDialog')
.addItem('Sheet Editor (Bootstrap)', 'openDialogBootstrap')
.addItem('Sheet Editor (Tailwind CSS)', 'openDialogTailwindCSS')
.addItem('About me', 'openAboutSidebar');
menu.addToUi();
@@ -22,6 +23,13 @@ export const openDialogBootstrap = () => {
SpreadsheetApp.getUi().showModalDialog(html, 'Sheet Editor (Bootstrap)');
};
export const openDialogTailwindCSS = () => {
const html = HtmlService.createHtmlOutputFromFile('dialog-demo-tailwindcss')
.setWidth(600)
.setHeight(600);
SpreadsheetApp.getUi().showModalDialog(html, 'Sheet Editor (Tailwind CSS)');
};
export const openAboutSidebar = () => {
const html = HtmlService.createHtmlOutputFromFile('sidebar-about-page');
SpreadsheetApp.getUi().showSidebar(html);