choiceSwitch

The choiceSwitch element is a complex type definition for extending a button element's selection extension choices.

Element Structure

The choiceSwitch element structure is as follows:

<xs:complexType name="choiceSwitch">

   <xs:complexContent>

      <xs:extension base="tns:button" />

   </xs:complexContent>

</xs:complexType>

Sub-elements

None

tog_minusChoice Switch Example

This section presents a sample Yes/No switch, followed by the JSON content that builds the UI representation.

YesNoSwitch

"contentSections" : [ {

          "id" : "1341387025372-9259fd13a1812ac0861b7bad3b9b13850e58607-5bd3",

          "sectionGroupType" : "SINGLE",

          "sectionNumberOfColumns" : 0,

          "sectionChoices" : [ {

            "id" : "1341387025372-9259fd13a1812ac0861b7bad3b9b13850e58607-5bd3",

            "choiceValue" : "1",

            "choiceSwitch" : {

              "id" : "1341387025372-9259fd13a1812ac0861b7bad3b9b13850e58607-5bd3",

              "buttonVisible" : true,

              "buttonLabel" : "Yes/No Switch Style"

            }

          } ]

        } ],