singlestage/components/table/
head.rs1use leptos::prelude::*;
2
3#[component]
4pub fn TableHead(
5 children: Children,
6
7 #[prop(optional, into)]
12 accesskey: MaybeProp<String>,
13 #[prop(optional, into)]
18 autocapitalize: MaybeProp<String>,
19 #[prop(optional, into)]
22 autofocus: MaybeProp<bool>,
23 #[prop(optional, into)]
25 class: MaybeProp<String>,
26 #[prop(optional, into)]
30 contenteditable: MaybeProp<String>,
31 #[prop(optional, into)]
35 dir: MaybeProp<String>,
36 #[prop(optional, into)]
38 draggable: MaybeProp<bool>,
39 #[prop(optional, into)]
41 enterkeyhint: MaybeProp<String>,
42 #[prop(optional, into)]
44 exportparts: MaybeProp<String>,
45 #[prop(optional, into)]
47 hidden: MaybeProp<String>,
48 #[prop(optional, into)]
50 id: MaybeProp<String>,
51 #[prop(optional, into)]
53 inert: MaybeProp<bool>,
54 #[prop(optional, into)]
57 inputmode: MaybeProp<String>,
58 #[prop(optional, into)]
60 is: MaybeProp<String>,
61 #[prop(optional, into)]
63 itemid: MaybeProp<String>,
64 #[prop(optional, into)]
66 itemprop: MaybeProp<String>,
67 #[prop(optional, into)]
69 itemref: MaybeProp<String>,
70 #[prop(optional, into)]
72 itemscope: MaybeProp<String>,
73 #[prop(optional, into)]
75 itemtype: MaybeProp<String>,
76 #[prop(optional, into)]
78 lang: MaybeProp<String>,
79 #[prop(optional, into)]
81 nonce: MaybeProp<String>,
82 #[prop(optional, into)]
84 part: MaybeProp<String>,
85 #[prop(optional, into)]
87 popover: MaybeProp<String>,
88 #[prop(optional, into)]
90 role: MaybeProp<String>,
91 #[prop(optional, into)]
93 slot: MaybeProp<String>,
94 #[prop(optional, into)]
98 spellcheck: MaybeProp<String>,
99 #[prop(optional, into)]
101 style: MaybeProp<String>,
102 #[prop(optional, into)]
104 tabindex: MaybeProp<usize>,
105 #[prop(optional, into)]
107 title: MaybeProp<String>,
108 #[prop(optional, into)]
110 translate: MaybeProp<String>,
111
112 #[prop(optional, into)]
116 abbr: MaybeProp<String>,
117 #[prop(optional, into)]
119 colspan: MaybeProp<usize>,
120 #[prop(optional, into)]
122 headers: MaybeProp<String>,
123 #[prop(optional, into)]
125 rowspan: MaybeProp<usize>,
126 #[prop(optional, into)]
130 scope: MaybeProp<String>,
131) -> impl IntoView {
132 let global_attrs_1 = view! {
133 <{..}
134 accesskey=move || accesskey.get()
135 autocapitalize=move || autocapitalize.get()
136 autofocus=move || autofocus.get()
137 class=move || class.get()
138 contenteditable=move || contenteditable.get()
139 dir=move || dir.get()
140 draggable=move || draggable.get()
141 enterkeyhint=move || enterkeyhint.get()
142 exportparts=move || exportparts.get()
143 hidden=move || hidden.get()
144 id=move || id.get()
145 inert=move || inert.get()
146 inputmode=move || inputmode.get()
147 is=move || is.get()
148 itemid=move || itemid.get()
149 />
150 };
151
152 let global_attrs_2 = view! {
153 <{..}
154 itemprop=move || itemprop.get()
155 itemref=move || itemref.get()
156 itemscope=move || itemscope.get()
157 itemtype=move || itemtype.get()
158 lang=move || lang.get()
159 nonce=move || nonce.get()
160 part=move || part.get()
161 popover=move || popover.get()
162 role=move || role.get()
163 slot=move || slot.get()
164 spellcheck=move || spellcheck.get()
165 style=move || style.get()
166 tabindex=move || tabindex.get()
167 title=move || title.get()
168 translate=move || translate.get()
169 />
170 };
171
172 view! {
173 <th
174 abbr=move || abbr.get()
175 colspan=move || colspan.get()
176 headers=move || headers.get()
177 rowspan=move || rowspan.get()
178 scope=move || scope.get()
179
180 {..global_attrs_1}
181 {..global_attrs_2}
182 >
183 {children()}
184 </th>
185 }
186}