My favorites | Sign in
Project Home Downloads
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 101: Radio buttons for single selection
1 person starred this issue and may be notified of changes. Back to list
Status:  Verified
Owner:  moo...@wwwendt.de
Closed:  Aug 2009


 
Reported by lakomylukasz@gmail.com, Jun 17, 2009
It would be nice if you could add radio buttons as selection elements too.

When 'selectMode' = 1 (single-selection) it should be possible to switch
display from checkbox to radio buttons. For example addtional parameter
'radio' could be added and taken into account only when 'selectMode' = 1

Rationale: Users when they see checkboxes they assume that it is possible
to select multiple options.
Jun 17, 2009
#1 lakomylukasz@gmail.com
Type is 'Defect' but should be Enhancement. I can't see anywhere how can I change this.
Jun 17, 2009
Project Member #2 moo...@wwwendt.de
That makes sense. 
(As possble current work-around could be to use addClass:'radio' for every node and
extend the css)
Status: Accepted
Owner: moo...@wwWendt.de
Labels: -Type-Defect Type-Enhancement Milestone-Discussion
Jun 22, 2009
#3 lakomylukasz@gmail.com
Here is an example of tree with radio buttons. Please see attached simple working
example.

I don't want to generate checkboxes on the fly because it needs to work without js
(just in case). Your tree is just a layer on top of it. 
 
I also added radio buttons (after realizing that checkboxes in tree are not real
checkboxes but images) using CSS trick. Please see attached html, CSS (lines:
145-174, 283-286) and images.


dynatree-radiobuttons.zip
118 KB   Download
Jul 6, 2009
Project Member #4 moo...@wwwendt.de
Still have to find a way to configure this.
'checkbox' option could be extended to accept a string ('radio', 'checkbox') instead
boolean?
Labels: -Milestone-Discussion Milestone-Release0.5.1
Aug 16, 2009
Project Member #5 moo...@wwwendt.de
Fixed with r268.
Status: Fixed
Aug 16, 2009
Project Member #6 moo...@wwwendt.de
- Added new GIFs
- Allowed single classNames to be overridden separately
- Added ui-dynatree-radio to the CSS

Credits go to Łukasz Łakomy!
Jul 17, 2012
Project Member #7 moo...@wwwendt.de
considered verified
Status: Verified

Powered by Google Project Hosting