2015-02-12, 23:07
So I'm trying to add a button to the right of the content in a fixed list, but as the items move left/right I would like the button to move also - I'm trying to make it look like its part of the list, on the end.
I can get the button to move by adding
However this snaps back into it's original position each time, what I want the button to do is move left 245px when you go to the next item and right 245px when you go to previous. If I was using a normal list I could probably use Container(8000).Column(id) to define the buttons position, but as its a fixed list the column is always 1. I thought perhaps I could use Container().Position() but this value is empty. I also can't use Container().HasFocus() because the list is being filled dynamically.
Is there any magical way with conditions, etc I can get this to work?
I can get the button to move by adding
PHP Code:
<visible>!Container(8000).OnNext</visible>
<animation effect="slide" start="0,0" end="-245,0" time="350" reversible="false">Visible</animation>
However this snaps back into it's original position each time, what I want the button to do is move left 245px when you go to the next item and right 245px when you go to previous. If I was using a normal list I could probably use Container(8000).Column(id) to define the buttons position, but as its a fixed list the column is always 1. I thought perhaps I could use Container().Position() but this value is empty. I also can't use Container().HasFocus() because the list is being filled dynamically.
Is there any magical way with conditions, etc I can get this to work?