From bd449a177b89f60215e8853decdacb9f60fa16a2 Mon Sep 17 00:00:00 2001 From: saqimtiaz Date: Thu, 2 Apr 2020 20:49:41 +0200 Subject: [PATCH] Update documentation for Modals (#4495) Update documentation for modals to include the custom class introduced in #4485, as well as the footer and subtitle fields that don't appear to be documented. --- editions/tw5.com/tiddlers/features/Modals.tid | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/editions/tw5.com/tiddlers/features/Modals.tid b/editions/tw5.com/tiddlers/features/Modals.tid index ae4b3f26f..aa87ab68c 100644 --- a/editions/tw5.com/tiddlers/features/Modals.tid +++ b/editions/tw5.com/tiddlers/features/Modals.tid @@ -1,11 +1,18 @@ created: 20160107225427489 -modified: 20160107225651558 +modified: 20200312172056083 tags: Features title: Modals type: text/vnd.tiddlywiki Modals (or "wizards") fade the main TiddlyWiki window to display an isolated tiddler that must be explicitly dismissed by the user. +The tiddler to be displayed can contain the following optional fields that are used to customize the modal: + +|!Field |!Description | +|footer|The footer text for the modal| +|subtitle|The subtitle text for a modal| +|class|An additional class to apply to the modal wrapper| + Modals are displayed with the [[WidgetMessage: tm-modal]]. -<$button message="tm-modal" param="SampleWizard">Open demo modal \ No newline at end of file +<$button message="tm-modal" param="SampleWizard">Open demo modal