Radio buttons instead of a list box in the embedded DS?
Rod Widdowson
rdw at steadingsoftware.com
Sun Jun 19 10:00:01 EDT 2016
Keith,
> Is it possible to get the Shibboleth embedded DS to display IDP selections
as
> radio buttons instead of as a list with just a minimal amount of
JavaScript
> hacking?
I've played with this, and it isn't entirely obvious. It also depends on
what exactly you need. There are two lists - there is the auto-drop down
which gets created when you start typing and then there is the "allow me to
pick from a list dropdown" list.
AIUI the former has to be made of <li> elements to help screen readers.
It's relatively easy to put a radio button in before both the small image
and the text, but in 20 minutes playing I haven't been able to make the
radio button clickable. The module for this is typeahead.js and the method
is TypeAheadControl.prototype.populateDropDown (line 265-ish)
The latter is a standard set of <option> statements inside a <select>. That
you can pretty much do whatever you want to that. This is in idpselect.js
methods TypeAheadControl.prototype.populateDropDown and buildSelectOption.
Or (following on from Peter's comment) do you want the whole thing replaced
with one monster radio selector? In that case it's really a completely
different DS, you just rip off^H^H^H^H^H^H^H refactor some of the common
code.
I suggest we take this to dev if you want to go any further. If I can
understand your need a bit more we'll see what we can do, and if you think
it is worthwhile I'll listen to an RFE, but it won't be in V1.2 which is
about to go out.
Rod
More information about the users
mailing list