1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-06-25 23:03:15 +00:00
TiddlyWiki5/editions/tw5.com/tiddlers/messages/WidgetMessage_ tm-full-screen.tid
Jermolene 3140ff9e49 Extent tm-full-screen message to support forcing the status
Now one can force "enter" or "exit", instead of just toggling the current status
2018-08-14 22:53:53 +01:00

29 lines
796 B
Plaintext

caption: tm-full-screen
created: 20140811112400855
modified: 20180814215126941
tags: Messages
title: WidgetMessage: tm-full-screen
type: text/vnd.tiddlywiki
The fullscreen message is used to enter, exit or toggle the "fullscreen" mode of the browser, if it supports it. It uses the following properties on the `event` object:
|!Name |!Description |
|param |`enter` to enter full screen mode, `exit` to exit it, otherwise toggle the full screen status |
The fullscreen message is handled by the TiddlyWiki core.
<$macrocall $name='wikitext-example-without-html'
src='<$button message="tm-full-screen">
Full screen toggle
</$button>
<$button message="tm-full-screen" param="enter">
Full screen enter
</$button>
<$button message="tm-full-screen" param="exit">
Full screen exit
</$button>'/>