0
Action one item from a Database.
We are creating an app that as one part has a "to do" list. I want to be able to alpha on and off a line/panel "onswipe" for that item. Possible?
Сервис поддержки клиентов работает на платформе UserEcho
If you are using json you can do this onswipe:
applicable code below.
sorry and thanks ian.
<code>
<class name="checklist">
<panel name="chore" xpos="0%" ypos="0%" height="12%" width="100%" borderwidth="1" bordercolor="black" _choretxt="" onswiperight="lineout">
<text name="choretxt" alias="CHORETXT" text="" font="HelveticaNeue-bold" color="#000000" size="28" width="82%" xpos="18%" height="fit" valign="center" alignment="left"/>
<image name="icon" source="" height="90%" width="17%" valign="center" align="left" contain="yes" ></image>
<panel name="lineout" alias="LINEOUT" width="75%" height="3" xpos="20%" valign="center" background="#000000" alpha="0"></panel>
</panel>
</class>
<list name="checklist" width="100%" height="75%" datasource="checklist5-items" orientation="vertical" paginate="no" ypos="10%" alpha="1">
<object name="item" choretxt="" icon=""/>
</list>
<action name="lineout">
<alert message="choretxt"/>
<if lhs="test" operator="e" rhs="_choretxt">
<alpha time=".25" value="1" target="LINEOUT"/>
</if>
</action>
</code>
So you would be saying onswipe alpha on LINEOUT-2 (LINEOUT-[param:datasourceIndex]).
<code>
<classes>
<class name="checklist">
<panel name="chore" xpos="0%" ypos="0%" height="12%" width="100%" borderwidth="1" bordercolor="black" _choretxt="" onswiperight="lineout">
<text name="choretxt" alias="CHORETXT" text="" font="HelveticaNeue-bold" color="#000000" size="28" width="82%" xpos="18%" height="fit" valign="center" alignment="left"/>
<image name="icon" source="" height="90%" width="17%" valign="center" align="left" contain="yes" ></image>
<panel name="lineout-" alias="LINEOUT-" dsindex="" width="75%" height="3" xpos="20%" valign="center" background="#000000" alpha="0"></panel>
</panel>
</class>
<list name="checklist" width="100%" height="75%" datasource="checklist5-items" orientation="vertical" paginate="no" ypos="10%" alpha="1">
<object name="item" choretxt="" icon="" dataSourceIndex="[param:dataSourceIndex]"/>
</list>
<action name="lineout">
<alert message="" />
<alpha time=".25" value="1" target="LINEOUT-[param:dataSourceIndex"/>
</action>
</code>
Your lineout panel should look something like this :