- From: Erik Bruchez <ebruchez@orbeon.com>
- Date: Wed, 5 Aug 2020 11:55:51 -0700
- To: Steven Pemberton <steven.pemberton@cwi.nl>
- Cc: XForms <public-xformsusers@w3.org>
Received on Wednesday, 5 August 2020 18:56:15 UTC
This looks a little like this Bootstrap "button" appearance for radio buttons: https://getbootstrap.com/docs/4.0/components/buttons/#checkbox-and-radio-buttons -Erik On Wed, Aug 5, 2020 at 4:59 AM Steven Pemberton <steven.pemberton@cwi.nl> wrote: > I have a use case, which is best illustrated with this example: > > http://www.cwi.nl/~steven/forms/tests/switch-styling.xhtml > > (which is a version of something that comes from my original XForms > tutorial > https://homepages.cwi.nl/~steven/xforms11-for-html-authors/part2.html) > > My example uses a row of triggers at the top, which then toggle the > respective switch case. > > What I wanted though was that the trigger stay at a different colour once > clicked. So in the above example, each trigger sets a value to 'selected' > and then uses that as an AVT in a class to style the selected tab. > > What struck me though was that this row of triggers is really just a > select1 in a different guise. > > So I redid it using select1: > > http://www.cwi.nl/~steven/forms/tests/switch-styling1.xhtml > > and my conclusion was that this woulld be really useful as a standard > @appearance value, since I could imagine using it in lots of different > places. > > Steven > >
Received on Wednesday, 5 August 2020 18:56:15 UTC