question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Enhancement] Templated CheckBox

See original GitHub issue

Summary

CheckBox should have a “Content” property similar to RadioButton. This property should allow you to set a string or a view.

Similar to #11628 and #7299 (this one seems to have been forgotten about).

API Changes

<CheckBox Content="I agree to the terms of service" />

Intended Use Case

The majority of use cases of a checkbox involve a label beside it that is clickable. To keep things consistent, the checkbox API should be similar to the existing RadioButton where you can have a template view instead of just a string.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:4
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
mcguucommented, May 17, 2021

I do not think so. If there is a Content I do not want to use it .

just keep it simple.

you can write layouts to it.

3reactions
ronnygunawancommented, Sep 24, 2021

I do not think so. If there is a Content I do not want to use it .

just keep it simple.

you can write layouts to it.

The purpose of having Content is to expand the clickable area to text next to the checkbox. It’s really inconvenient having to click on the small box and not being able to click on the text to check the checkbox.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Checkboxes
Checkboxes allow the user to select one or more items from a set. ... It should be visible at a glance if a...
Read more >
Enhance Your Checkboxes & To-do Lists with Conditional ...
This technique uses the Form Control Checkboxes and conditional formatting. The video is packed with additional tips for creating and ...
Read more >
Insert a Clickable Checkbox | Create a Checklist in Word
In this video I demonstrate how to add a clickable checkbox to your Microsoft ... Get 30% Discount on Simple Sheets Templates and...
Read more >
checkbox column template in UI for ASP.NET MVC
Hi, I have various columns in different Kendo grids binded to a boolean field of my Sql database (using Ajax binding). I'd like...
Read more >
How to allow the user to check or uncheck a checkbox in ...
In the Template Designer, navigate to the Form tab · Click Add question · Select Checkbox in the Type dropdown · Enter the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found