acederberg.io
  • Home
  • Projects
    • Projects
    • Blog
    • Nvim Configuration
    • Blog and Demo Automation
    • Captura
  • Resume
  • Posts
  • Kaggle
  • Leetcode

On this page

  • Interfaces
    • TTodoTable
  • Variables
    • TodoTableInstances
  • Functions
    • hydrate()
    • TodoTable()

Todo

Author

Adrian Cederberg

Note

Documentation generated by typedoc on Thu Feb 20 2025 16:25:49 GMT+0000 (Coordinated Universal Time) with typedoc-plugin-markdown (and then rendered by quarto).

blog


Interfaces

TTodoTable

Defined in: todo.js:7

Properties

elem
elem: HTMLElement | Element;

Defined in: todo.js:9

outermost element

highlightRow()
highlightRow: (row) => void;

Defined in: todo.js:12

Highlight a row.

Parameters
row

HTMLElement

Returns

void

initialize()
initialize: () => void;

Defined in: todo.js:13

Initializer.

Returns

void

rows
rows: HTMLElement[];

Defined in: todo.js:11

All rows with elem.

tables
tables: HTMLElement[];

Defined in: todo.js:10

All tables within elem

Variables

TodoTableInstances

const TodoTableInstances: Map<string, TTodoTable>;

Defined in: todo.js:4

Functions

hydrate()

function hydrate(): void;

Defined in: todo.js:64

Returns

void


TodoTable()

function TodoTable(elem): TTodoTable;

Defined in: todo.js:31

Highlight the rows in table to indicate completion status.

Check that the table is well formed. Since quarto is silly about giving ids to tables (and cross references are broken in the version that I am currently using) wrap tables in a div with the id.

Parameters

elem

The table element wrapped in a table group. This must have an id that starts with tbl-.

HTMLElement | Element

Returns

TTodoTable

Throws

if the identifier is malformed or missing.