// Query excerpt. Server and browser.
let issues = live_query! {
DemoItem from i in IssueRow
where if $(!search.get().is_empty()) {
i.title contains $(search.get())
}
order by i.position
select {
id: i.id,
title: i.title,
open: i.open
}
};// Query excerpt. Server and browser.
let issues = live_query! {
DemoItem from i in IssueRow
where if $(!search.get().is_empty()) {
i.title contains $(search.get())
}
order by i.position
select {
id: i.id,
title: i.title,
open: i.open
}
};view! {
<ul>
for issue in $(issues) {
<li>
<button @click=$(|_e| {
table.set(
issue.id.clone(),
"open", !issue.open
)
})>
$(issue.title.clone())
</button>
</li>
}
</ul>
}Simplified excerpts. Full source on GitHub
- Make the first render count
- Keep filters close to the data
- Let the server check the writes
- Ship something worth opening
No matches. Try a different filter.
Try a filter. Tick a row.Built with hearth