<?xml version="1.0" encoding="UTF-8"?>

<ibloc xmlns="http://www.irise.com/schema/ibloc" type="widget" namespace="irise" name="iPhoneOnOff" version="2.2" productVersion="8.7">
  <displayName>iPhone ON-OFF Switch</displayName>
  <description>OnOff Button for iPhone and iPad platforms</description>
  <canvasImage scale="stretch">resources/images/on_off_CanvasImage.png</canvasImage>
  <iconImage>resources/images/on_off_Icon.png</iconImage>
  <defaultWidth>94</defaultWidth>
  <defaultHeight>27</defaultHeight>
  <containsDrag>false</containsDrag>
  <intrinsicProperty>btnState</intrinsicProperty>
  <metadata>
    <createdBy>iRise</createdBy>
    <supportedBrowsers>IE v8,Firefox v3.5,Safari v4,Chrome v8</supportedBrowsers>
    <connectionRequired>false</connectionRequired>
    <helpUrl>https://idn.irise.com/x/0oDp?utm_campaign=ibloc&amp;utm_source=studio&amp;utm_medium=about_link</helpUrl>
    <supportNumber>1-866-361-3900</supportNumber>
    <supportUrl>http://community.irise.com/irise/searches?query=on+off+switch+ibloc&amp;style=topics?utm_campaign=ibloc&amp;utm_source=studio&amp;utm_medium=about_link</supportUrl>
    <releaseDate>2011-08-11</releaseDate>
  </metadata>
  <properties>
    <property name="selectPhone" editable="true" required="false">
      <displayName>Phone Type</displayName>
      <description>Select the iPhone version.</description>
      <editor name="dropDown" multiValue="false" minEditorCount="0" maxEditorCount="1">
        <property name="constraints">
          <values>
            <string>iPhone 4</string>
            <string>iPhone 5</string>
          </values>
        </property>
      </editor>
      <defaultValue>
        <string>iPhone 4</string>
      </defaultValue>
      <validators></validators>
    </property>
    <property name="labelOption" editable="true" required="false">
      <displayName>Switch Label</displayName>
      <description>Select the label on switch.</description>
      <editor name="dropDown" multiValue="false" minEditorCount="0" maxEditorCount="1">
        <property name="constraints">
          <values>
            <string>ON/OFF</string>
            <string>YES/NO</string>
          </values>
        </property>
      </editor>
      <defaultValue>
        <string>ON/OFF</string>
      </defaultValue>
      <validators></validators>
    </property>
    <property name="valueOn" editable="true" required="false">
      <displayName>Value ON / YES</displayName>
      <description>Enter the ValueON data you wish to pass.</description>
      <editor name="textInput" multiValue="false" minEditorCount="0" maxEditorCount="0"></editor>
      <validators></validators>
    </property>
    <property name="valueOff" editable="true" required="false">
      <displayName>Value OFF / NO</displayName>
      <description>Enter the ValueOFF data you wish to pass.</description>
      <editor name="textInput" multiValue="false" minEditorCount="1" maxEditorCount="0"></editor>
      <validators></validators>
    </property>
    <property name="targtWidget" editable="true" required="false">
      <displayName>Target widget</displayName>
      <description>The text, text input or text area to be set to show the currently selected time.</description>
      <editor name="widgetChooser" multiValue="true" minEditorCount="0" maxEditorCount="0"></editor>
      <validators></validators>
    </property>
    <property name="animate" editable="true" required="false">
      <displayName>Animate</displayName>
      <description>Choose whether to see the switch slide on/off or not.</description>
      <editor name="checkBox" multiValue="false" minEditorCount="1" maxEditorCount="1"></editor>
      <validators></validators>
    </property>
    <property name="btnState" editable="true" required="false">
      <displayName>Selected Value</displayName>
      <description>Mention the button state</description>
      <editor name="textInput" multiValue="false" minEditorCount="1" maxEditorCount="0"></editor>
      <validators></validators>
    </property>
  </properties>
  <events>
    <event name="onSelectionChange">
      <displayName>On Selection Change</displayName>
      <description>Fires when the selection changes</description>
    </event>
  </events>
  <preload>
    <scripts>
      <script src="/iblocs/irise/iPhoneOnOff/2.2/javascript/iphoneOnOffScript.js"></script>
      <script src="/iblocs/irise/iPhoneOnOff/2.2/javascript/cornerz.js"></script>
    </scripts>
    <stylesheets>
      <stylesheet src="/iblocs/irise/iPhoneOnOff/2.2/resources/styles/iphoneOnOffStyle.css"></stylesheet>
    </stylesheets>
  </preload>
</ibloc>