Skip to content

SelectOptionParams<T>

Parameters for selectOption.

Import:

import type { SelectOptionParams } from 'obsidian-dev-utils/obsidian/modals/select-option';

Signature:

export interface SelectOptionParams<T> extends ModalParamsBase

Extends: ModalParamsBase

Properties

PropertyTypeDescription
appAppAn Obsidian app instance.
(Inherited from ModalParamsBase)
cssClasses?string[]A CSS class to apply to the modal.
(Inherited from ModalParamsBase)
message?DocumentFragment | stringA message displayed above the option buttons.
optionsSelectOptionItem<T>[]The selectable options, each rendered as a button.
title?DocumentFragment | stringA title of the modal.

Links to this page: