mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-21 15:01:55 +00:00
Remove references to dash-pattern in docs
This commit is contained in:
parent
8d67aa1ff0
commit
48e934cd40
1 changed files with 3 additions and 4 deletions
|
@ -109,7 +109,7 @@ mod server;
|
|||
/// # });
|
||||
/// ```
|
||||
///
|
||||
/// 5. Event handlers can be added with `on:` attributes. If the event name contains a dash, you should use `on-` as the prefix instead.
|
||||
/// 5. Event handlers can be added with `on:` attributes.
|
||||
/// ```rust
|
||||
/// # use leptos_reactive::*; use leptos_dom::*; use leptos_macro::view; use leptos_dom::wasm_bindgen::JsCast;
|
||||
/// # run_scope(|cx| {
|
||||
|
@ -130,8 +130,6 @@ mod server;
|
|||
/// 6. DOM properties can be set with `prop:` attributes, which take any primitive type or `JsValue` (or a signal
|
||||
/// that returns a primitive or JsValue). They can also take an `Option`, in which case `Some` sets the property
|
||||
/// and `None` deletes the property.
|
||||
///
|
||||
/// If your property name contains a dash, you should use `prop-` as the prefix instead.
|
||||
/// ```rust
|
||||
/// # use leptos_reactive::*; use leptos_dom::*; use leptos_macro::view; use leptos_dom::wasm_bindgen::JsCast;
|
||||
/// # run_scope(|cx| {
|
||||
|
@ -154,7 +152,7 @@ mod server;
|
|||
/// ```
|
||||
///
|
||||
/// 7. Classes can be toggled with `class:` attributes, which take a `bool` (or a signal that returns a `bool`).
|
||||
/// ```rustxr
|
||||
/// ```rust
|
||||
/// # use leptos_reactive::*; use leptos_dom::*; use leptos_macro::view; use leptos_dom::wasm_bindgen::JsCast;
|
||||
/// # run_scope(|cx| {
|
||||
/// # if !cfg!(any(feature = "csr", feature = "hydrate")) {
|
||||
|
@ -164,6 +162,7 @@ mod server;
|
|||
/// # }
|
||||
/// # });
|
||||
/// ```
|
||||
///
|
||||
/// Class names can include dashes, but cannot (at the moment) include a dash-separated segment of only numbers.
|
||||
/// ```rust,compile_fail
|
||||
/// # use leptos_reactive::*; use leptos_dom::*; use leptos_macro::view; use leptos_dom::wasm_bindgen::JsCast;
|
||||
|
|
Loading…
Reference in a new issue