You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,20 @@
2
2
3
3
This file contains the changelog for the PlutoExtras package. It follows the [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) format.
4
4
5
+
## [0.7.16] - 2025-09-26
6
+
7
+
### Fixed
8
+
- Fixed problems with `ExtendedTableOfContents` with recent PlutoUI versions, also resolving an issue with `hide-heading` icon not appearing next to the corresponding heading in the ToC.
9
+
- Fixed styling issue with `BondsTable` in #19
10
+
11
+
### Added
12
+
- Added possibility of providing any valid object with a `MIME"text/html"` representation as description of the `@NTBond` macro.
13
+
- Added the possibility of simplifying application of `PlutoUI.Experimental.transformed_value` to the fields of an `@NTBond` using the `@tv` decorator (see the example notebook for details).
14
+
15
+
### Changed
16
+
- Changed the hiding behavior of the `Popout` container so that it stays displayed if the mouse is hovering over its contents even if not popped out
17
+
18
+
5
19
## [0.7.15] - 2025-04-22
6
20
Changelog was introduced in this version. Only changes w.r.t. version v0.7.14 are listed
Copy file name to clipboardExpand all lines: docs/src/structbond.md
+46-2Lines changed: 46 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ The StructBondModule submodule of PlutoExtras defines and exports functionality
5
5
!!! note
6
6
The StructBondModule is currently not re-exported by PlutoExtras so it has to be explicitly used with `using PlutoExtras.StructBondModule`
7
7
8
-
Open the [structbond test notebook static html](https://rawcdn.githack.com/disberd/PlutoExtras.jl/0e3153d29d3b112f93507c042a35b8161a3bb661/html_exports/test_bondstable.jl.html) to see the look of the widgets exported.\
8
+
Open the [structbond module notebook static html](https://raw.githack.com/disberd/PlutoExtras.jl/assets/html/structbondmodule.html) to see the look of the widgets exported.\
9
9
Or open the [related notebook](https://github.com/disberd/PlutoExtras.jl/blob/master/test/notebooks/structbondmodule.jl) directy in Pluto to check their functionality in action!
10
10
!!! note
11
11
The notebook must be run from the original folder (`test/notebooks`) within the `PlutoExtras` package folder to properly load the PlutoExtras package
@@ -37,6 +37,49 @@ The macro simply create a [`StructBond`](@ref) wrapping the desired NamedTuple t
37
37
</video>
38
38
```
39
39
40
+
### Transforming the resulting NamedTuple
41
+
Since version v0.7.16, it is possible to `PlutoUI.Experimental.transformed_value` to transform the resulting value of the NamedTuple return by the `@NTBond` macro by either providing a third argument to the macro (acting on the full `NamedTuple`) or by using the `@tv` decorator directly when defining the bond for a specific field:
42
+
43
+
#### Transforming the full NamedTuple
44
+
45
+
When calling the macro with a third argument, this is interpreted as a function that is used to create a bond transformation using `PlutoUI.Experimental.transformed_value`.
46
+
47
+
This means that the two expressions below yield the same result:
The synthax accepting a function to transformed the resulting NamedTuple also has a convenience shorthand where `_` can be used to represent the original bond value.
62
+
63
+
The above example could then also be written as:
64
+
```julia
65
+
@NTBond "WoW" begin
66
+
a = ("Description", Slider(1:10))
67
+
end _.a + 2
68
+
```
69
+
70
+
#### Transforming a single field
71
+
72
+
For the use directly at field level, it is sufficient to use the `@tv` decorator in place of the bond widget directly, using the following form and as shown in the image below:
The `@tv` decorator is not a macro actually defined within PlutoExtras, but is directly parsed during the macro expansion of `@NTBond`.
81
+
82
+
40
83
## StructBondSelect
41
84
Sometimes, one wants to create a more complex binding where the number of parameters to control a bond can vary depending on some other variable. The `StructBondSelect` can be of help in some of these cases, by providing a way to select out of a number of arbitrary `StructBonds` (which include `@NTBond`) by using a dropdown to select the one to be displayed and used for generating the `StructBondSelect` widget's output.
42
85
@@ -52,7 +95,7 @@ The `description` kwarg can be used to customize the text in the widget containe
0 commit comments