mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 18:29:09 +00:00
doc: Fix rendering of slint::interpreter::ComponentInstance::set_global_callback
Don't use a preview for the Slint snippet that just shows a global. There's nothing to render.
This commit is contained in:
parent
fa8959c7bc
commit
41e3e27bff
1 changed files with 1 additions and 1 deletions
|
@ -725,7 +725,7 @@ public:
|
|||
/// Like `set_callback()` but on a callback in the specified exported global singleton.
|
||||
///
|
||||
/// Example: imagine the .slint file contains the given global:
|
||||
/// ```slint
|
||||
/// ```slint,no-preview
|
||||
/// export global Logic := {
|
||||
/// callback to_uppercase(string) -> string;
|
||||
/// }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue