From 374a0fe56d3bd8e3eca260b565752e14f3131f97 Mon Sep 17 00:00:00 2001 From: "jeremy@jermolene.com" Date: Sun, 23 Apr 2023 13:14:46 +0100 Subject: [PATCH] Add new example from @kookma --- editions/tw5.com/tiddlers/features/Core Icons.tid | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/editions/tw5.com/tiddlers/features/Core Icons.tid b/editions/tw5.com/tiddlers/features/Core Icons.tid index 1eb7f84ad..9799f48d7 100644 --- a/editions/tw5.com/tiddlers/features/Core Icons.tid +++ b/editions/tw5.com/tiddlers/features/Core Icons.tid @@ -1,5 +1,8 @@ title: Core Icons tags: Features +modified: 20230423103154329 +created: 20230423103154329 + !! Introduction @@ -18,6 +21,14 @@ The core icons are parameterised. The first parameter `size` specified the size <$transclude $tiddler="$:/core/images/picture" size="32px"/> """>> +Here is an example of dynamically resizing icons: + +< +<$text text={{{ [addsuffix[px]] }}} /> +<$transclude $tiddler="$:/core/icon" size=<>/> + +""">> + Some icons take further parameters to customise how they are rendered. For example, the $:/core/images/new-journal-button icon takes an additional parameter `day` that specifies the day of the month that should be shown on the calendar. It defaults to the current date if not specified <