#28712: Add ability to apply separate attributes to ChoiceWidget options
-------------------------------------+-------------------------------------
     Reporter:  Stephen Swatman      |                    Owner:  Stephen
                                     |  Swatman
         Type:  New feature          |                   Status:  assigned
    Component:  Forms                |                  Version:  master
     Severity:  Normal               |               Resolution:
     Keywords:  ChoiceWidget         |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Bjorn Kristinsson):

 I ran into a case the other day where this would have been extremely
 useful. I needed to show a select with all options visible, but depending
 on the user's permissions some of the options needed to be disabled. This
 can be achieved by setting the disabled attribute, but since there was no
 way to do that per option, I had to roll my own.

 Looks like this would solve that, and if you're still looking for an
 example to use in the docs, maybe you could show how to disable options?

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28712#comment:12>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.6705ef8dd85aaffa86edebf0b462fefa%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to