wip: remove runner on hook and then update docs

This commit is contained in:
Jonathan Kelley committed 2022-01-02 02:15:04 -05:00
1 parent 7d41a16208
commit d1560450ba
95 files changed
+1339 -675

No files matched your search

+2 -3
View File
@@ -281,8 +281,8 @@ builder_constructors! {
/// ```
///
/// ## References:
/// - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div
/// - https://www.w3schools.com/tags/tag_div.asp
/// - <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div>
/// - <https://www.w3schools.com/tags/tag_div.asp>
div {};
/// Build a
@@ -883,7 +883,6 @@ builder_constructors! {
src: Uri,
step: String,
tabindex: usize,
width: isize,
// Manual implementations below...
+6 -6
View File
@@ -21,12 +21,12 @@ pub mod on {
$(
$(#[$method_attr])*
pub fn $name<'a, F>(
c: NodeFactory<'a>,
factory: NodeFactory<'a>,
mut callback: F,
) -> Listener<'a>
where F: FnMut(Arc<$wrapper>) + 'a
{
let bump = &c.bump();
let bump = &factory.bump();
// we can't allocate unsized in bumpalo's box, so we need to craft the box manually
// safety: this is essentially the same as calling Box::new() but manually
@@ -48,7 +48,7 @@ pub mod on {
callback: bump.alloc(std::cell::RefCell::new(Some(callback))),
};
c.listener(shortname, handler)
factory.listener(shortname, handler)
}
)*
)*
@@ -179,8 +179,8 @@ pub mod on {
/// ```
///
/// ## Reference
/// - https://www.w3schools.com/tags/ev_onclick.asp
/// - https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event
/// - <https://www.w3schools.com/tags/ev_onclick.asp>
/// - <https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event>
onclick
/// oncontextmenu
@@ -430,7 +430,7 @@ pub mod on {
/// Get the key code as an enum Variant.
///
/// This is intended for things like arrow keys, escape keys, function keys, and other non-international keys.
/// To match on unicode sequences, use the [`key`] method - this will return a string identifier instead of a limited enum.
/// To match on unicode sequences, use the [`KeyboardEvent::key`] method - this will return a string identifier instead of a limited enum.
///
///
/// ## Example
+3 -2
View File
@@ -399,7 +399,7 @@ pub trait GlobalAttributes {
height: "height",
/// Specifies how flex items are aligned along the main axis of the flex container after any flexible lengths and auto margins have been resolved.
justify_content: "auto margins have been resolved.",
justify_content: "justify-content",
/// Specify the location of the left edge of the positioned element.
left: "left",
@@ -535,6 +535,7 @@ pub trait GlobalAttributes {
/// Sets the horizontal alignment of inline content.
text_align: "text-align",
/// Specifies how the last line of a block or a line right before a forced line break is aligned when is justify.",
text_align_last: "text-align-last",
@@ -614,7 +615,7 @@ pub trait GlobalAttributes {
word_wrap: "word-wrap",
/// Specifies a layering or stacking order for positioned elements.
z_index : "z-index ",
z_index : "z-index",
}
aria_trait_methods! {