Created
October 22, 2023 20:00
-
-
Save davecra/f5636daa52fece3d3ed5d0117c34850c to your computer and use it in GitHub Desktop.
Details.js for Power-Up
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* global TrelloPowerUp */ | |
/// <reference path="../types/trello.d.js" /> | |
import SettingsPage from "./pages/settingsPage"; | |
/** @type {TrelloPowerUp} */ | |
const tpu = window.TrelloPowerUp; | |
/** @type {TrelloObject} Trello iframe object */ | |
const t = tpu.iframe(); | |
t.render(() => { | |
/** @type { "settings" } */ | |
const page = t.arg("page"); | |
switch (page) { | |
case "settings": | |
const settings = new SettingsPage(); | |
settings.render(t); | |
break; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment