packages/plugin-dev/api-test-plugin/index.html
getTasks()``getArchivedTasks()``getCurrentContextTasks()``addTask(data)``updateTask(id, data)``getAllProjects()``addProject(data)``updateProject(id, data)``getAllTags()``addTag(data)``updateTag(id, data)``showSnack(config)``notify(config)``openDialog(config)``persistDataSynced(data)``loadSyncedData()``registerHook(hook, handler)``registerHeaderButton(config)``registerMenuEntry(config)``registerShortcut(config)``setCounter(key, value)``getCounter(key)``incrementCounter(key, amount)``decrementCounter(key, amount)``deleteCounter(key)``getAllCounters()
Run All API Tests
Test Save DataTest Load Data
Get All TasksGet Archived TasksGet Context TasksCreate Test TaskUpdate Last Task
Get All ProjectsCreate Test ProjectGet All TagsCreate Test Tag
Success SnackError SnackInfo SnackShow NotificationOpen Dialog
Task PlannerAnalytics Dashboard
Console output will appear here...
This is a paragraph with bold , italic, and link styles.
Inline code is styled automatically.
DefaultPrimaryOutlineDisabled Primary Disabled Outline Disabled
Select option 1Select option 2Select option 3 Checkbox label
const tasks = await PluginAPI.getTasks();
console.log(tasks.length);
| Method | Description |
|---|---|
getTasks() | Get all active tasks |
addTask(data) | Create a new task |
showSnack(cfg) | Show a notification |
A static card with background, shadow, and border.
Hover to see the lift effect and primary border highlight.