obsidian/Setting
Mock of Obsidian’s Setting, one row of a settings tab with a name, description and controls.
Classes
Section titled “Classes”| Class | Description |
|---|---|
| Setting | Mock of Obsidian’s Setting, a settings row with an info area (name and description) and a control area. The row is built as Obsidian builds it: settingEl (setting-item) holds infoEl (setting-item-info), which holds nameEl (setting-item-name) and descEl (setting-item-description), followed by controlEl (setting-item-control). Each add* method creates the real mock component in Setting.controlEl, hands it to the callback synchronously, and (except for Setting.addDisplayValue, as in Obsidian) records it in Setting.components. |