mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-01-23 09:09:21 -05:00
Revert remove use of --cfg=web_sys_unstable_apis for templates
This commit is contained in:
parent
e242834b66
commit
f918da9688
2 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,10 @@ variables:
|
||||||
ask: Name of the function
|
ask: Name of the function
|
||||||
- name: category
|
- name: category
|
||||||
ask: Documentation category (lower case)
|
ask: Documentation category (lower case)
|
||||||
|
- name: unstable_apis
|
||||||
|
default_value: "false"
|
||||||
|
ask: Does the function require `--cfg=web_sys_unstable_apis` to be activated?
|
||||||
|
select_in_values: ["true", "false"]
|
||||||
- name: module
|
- name: module
|
||||||
default_value: ""
|
default_value: ""
|
||||||
ask: Module [optional]
|
ask: Module [optional]
|
||||||
|
|
|
@ -3,6 +3,9 @@ use leptos::*;
|
||||||
|
|
||||||
///{{#if (eq unstable_apis "true")}}
|
///{{#if (eq unstable_apis "true")}}
|
||||||
///
|
///
|
||||||
|
/// > This function requires `--cfg=web_sys_unstable_apis` to be activated as
|
||||||
|
/// [described in the wasm-bindgen guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html).{{/if}}
|
||||||
|
///
|
||||||
/// ## Demo
|
/// ## Demo
|
||||||
///
|
///
|
||||||
/// [Link to Demo](https://github.com/Synphonyte/leptos-use/tree/main/examples/{{ function_name }})
|
/// [Link to Demo](https://github.com/Synphonyte/leptos-use/tree/main/examples/{{ function_name }})
|
||||||
|
|
Loading…
Add table
Reference in a new issue