Skip to content

SettingDefinitionAddItem

Official

Configuration for a SettingDefinitionList’s addItem affordance.

Import:

import type { SettingDefinitionAddItem } from 'obsidian';

Signature:

export interface SettingDefinitionAddItem

Properties

PropertyTypeDescription
action(el: HTMLElement) => voidCalled when the affordance is clicked or tapped. Receives the affordance element (the + button on desktop, the add-item row on mobile).
namestringMobile row label and desktop button tooltip.

Links to this page: