Skip to content

SettingDefinitionAddItem

Official

Configuration for a SettingDefinitionList’s addItem affordance.

Import:

import type { SettingDefinitionAddItem } from 'obsidian';

Signature:

export interface SettingDefinitionAddItem

Properties

Property Type Description
action (el: HTMLElement) => void Called when the affordance is clicked or tapped. Receives the affordance element (the + button on desktop, the add-item row on mobile).
name string Mobile row label and desktop button tooltip.

Links to this page: