leptos_struct_table/components/
mod.rs

1mod cell;
2mod renderer_fn;
3mod row;
4mod table_content;
5mod tbody;
6mod thead;
7mod thead_drag;
8
9pub use cell::*;
10pub use row::*;
11pub use table_content::*;
12pub use tbody::*;
13pub use thead::*;
14pub use thead_drag::*;
15
16#[macro_export]
17macro_rules! wrapper_render_fn {
18    (
19        #[$doc_name:meta]
20        $name:ident,
21        $tag:ident,
22        $(#[$additional_doc:meta])*
23    ) => {
24        /// Default
25        #[$doc_name]
26        /// renderer. Please note that this is **NOT** a `#[component]`.
27        ///
28        /// # Arguments
29        ///
30        /// * `content` - The content of the renderer. It's like the children of this view.
31        /// * `class` - The class attribute that is passed to the root element
32        $(#[$additional_doc])*
33        #[allow(non_snake_case)]
34        pub fn $name(content: AnyView, class: Signal<String>) -> impl IntoView {
35            view! {
36                <$tag class=class>
37                    {content}
38                </$tag>
39            }
40        }
41    };
42}