Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IDEA] Give custom fields individual selectors based on field name #8506

Open
twMat opened this issue Aug 10, 2024 · 0 comments
Open

[IDEA] Give custom fields individual selectors based on field name #8506

twMat opened this issue Aug 10, 2024 · 0 comments

Comments

@twMat
Copy link
Contributor

twMat commented Aug 10, 2024

I want to style individual custom fields but they lack a direct selector. I wish they had a data-field=<fieldname> class. This would make them as targetable as several other elements in the tiddler structure, perhaps most notably how individual tags get the useful attributes data-tag-title=<tagtitle>

This would enable distinguishing fields, for example to mark out "required fields" etc.

Here is the place I'm referring to, i.e to target the tr for that custom field:

image

Describe alternatives you've considered
There is currently no decent way to target individual custom fields. I can think of:

  • brittle trickery like using nth
  • also nonsense trickery: create a full editviewtemplate to replace the full custom fields area with a custom-"custom fields area"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant