From: Dominik Csapak <d.csapak@proxmox.com>
To: yew-devel@lists.proxmox.com
Subject: [PATCH yew-widget-toolkit-assets] data table: enable selection by default
Date: Mon, 22 Jun 2026 10:34:43 +0200 [thread overview]
Message-ID: <20260622084105.861033-1-d.csapak@proxmox.com> (raw)
it's very useful to select and copy&paste data from a data table, but
currently this is not allowed due to the `user-select: none` css
property.
Disabling user selection should rather be done individually on specific
usage sites (where the selection interferes with regular usage), so
remove that limitation here.
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
---
We allow user selection in most cases, such as labels and titles, but
not in datatables. This was already annoying in extjs, so lets not
repeat it for the yew interface. If we encounter cases where this makes
the UX worse, we can still disable it on that usage site. I guess almost
all cases are fine though from a short test.
scss/_datatable.scss | 1 -
1 file changed, 1 deletion(-)
diff --git a/scss/_datatable.scss b/scss/_datatable.scss
index 752c675..1a1a242 100644
--- a/scss/_datatable.scss
+++ b/scss/_datatable.scss
@@ -8,7 +8,6 @@
.pwt-datatable-content {
@include font_and_line_height("body-medium");
border-collapse: collapse;
- user-select: none;
td {
outline: 0;
--
2.47.3
next reply other threads:[~2026-06-22 8:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-22 8:34 Dominik Csapak [this message]
2026-06-22 8:57 ` applied: [PATCH yew-widget-toolkit-assets] data table: enable selection by default Dietmar Maurer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260622084105.861033-1-d.csapak@proxmox.com \
--to=d.csapak@proxmox.com \
--cc=yew-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox