mProjectsCode / obsidian-meta-bind-plugin

A plugin for Obsidian to make your notes interactive with inline input fields, metadata displays, and buttons.
https://www.moritzjung.dev/obsidian-meta-bind-plugin-docs/
GNU General Public License v3.0
536 stars 43 forks source link

Impossible to display the toggle input as a checkbox. #409

Closed irodionzaytsev closed 2 months ago

irodionzaytsev commented 2 months ago

Please fill out these Check-boxes

Plugin Version

Latest

This Issue Occurs on

Debug Info

output

Describe the Issue

So I want to apply some styling to the toggle input, so that it looks like a checkbox. As I understand, I have to apply it to a class something like this: .mb-input-type-toggle.toggle-as-checkbox .checkbox-container and then inside obsidian INPUT[toggle(class(toggle-as-checkbox))] The problem is, no matter what I put inside my css snippet, I don't think it's possible to make the toggle switch disappear and make it look like a checkbox. I try to take code from here, and change accordingly, but I get rubbish. The problem is, I can't make the toggle sit inside the span of my own class. Could you either add a separate checkbox input that can be used inline, or make the styling more accessible (like maybe add this usecase into documentation)? I try to achieve this with chatGPT, but it doesn't work.

Steps to Reproduce

Described above

Expected Behavior

i expect to be able to have a checkbox input instead of a toggle. Right now the only way is to install the ITS theme where all toggles are replaced by checkboxes.

irodionzaytsev commented 2 months ago

Actually someone already ask this as feature request here, but I don't think this is a feature request, because technically it should be possible to achieve this by CSS styling. If you prefer to add another field, namely checkbox, that of course solves this styling bug because then toggle is just a toggle.

mProjectsCode commented 2 months ago

The toggle styling comes from Obsidian and not this plugin. I do want to implement separate checkboxes at some point when I find the time and motivation.