@@ -94,7 +94,7 @@ fn build_data(count: usize) -> Vec<RowData> {
94
94
}
95
95
96
96
#[ component]
97
- fn ActionButton ( name : String , id : String , onclick : EventHandler ) -> Element {
97
+ fn Button ( name : String , id : String , onclick : EventHandler ) -> Element {
98
98
rsx ! {
99
99
div {
100
100
class: "col-sm-6 smallpad" ,
@@ -156,22 +156,22 @@ fn app() -> Element {
156
156
div { class: "col-md-6" , h1 { "Dioxus" } }
157
157
div { class: "col-md-6" ,
158
158
div { class: "row" ,
159
- ActionButton { name: "Create 1,000 rows" , id: "run" ,
159
+ Button { name: "Create 1,000 rows" , id: "run" ,
160
160
onclick: move |_| run( ( ) ) ,
161
161
}
162
- ActionButton { name: "Create 10,000 rows" , id: "runlots" ,
162
+ Button { name: "Create 10,000 rows" , id: "runlots" ,
163
163
onclick: move |_| run_lots( ( ) ) ,
164
164
}
165
- ActionButton { name: "Append 1,000 rows" , id: "add" ,
165
+ Button { name: "Append 1,000 rows" , id: "add" ,
166
166
onclick: move|_| add( ( ) ) ,
167
167
}
168
- ActionButton { name: "Update every 10th row" , id: "update" ,
168
+ Button { name: "Update every 10th row" , id: "update" ,
169
169
onclick: move |_| update( ( ) ) ,
170
170
}
171
- ActionButton { name: "Clear" , id: "clear" ,
171
+ Button { name: "Clear" , id: "clear" ,
172
172
onclick: move |_| clear( ( ) ) ,
173
173
}
174
- ActionButton { name: "Swap rows" , id: "swaprows" ,
174
+ Button { name: "Swap rows" , id: "swaprows" ,
175
175
onclick: move|_| swap_rows( ( ) ) ,
176
176
}
177
177
}
0 commit comments