-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I want to only allow direct control of next/previous on my cardlayouts via buttons I provide. I am trying to disable the feature where the user can swipe the screen on an Ipad and have the next or previous get fired via the swipe. Is there a way to disable swipe on the cardlayout?
I tried messing around with the widgetListeners but no luck so far.
Thanks! Andy
Solved To fix this via java do the following :
public class TestView extends GenericForwardComposer<Window>
{
private Cardlayout _cardlayout;
@Override
public void doAfterCompose(Window comp) throws Exception
{
super.doAfterCompose(comp);
_cardlayout.setWidgetAttribute("data-swipeable","false");
_cardlayout.setWidgetAttribute("data-scrollable","false");
}
Or to fix this in the zul
<cardlayout xmlns:ca="client/attribute" ca:data-swipeable="false" ca:data-scrollable="false"/>
Asked: 2014-09-29 12:53:40 +0800
Seen: 13 times
Last updated: Oct 01 '14
I found this in the documentation : "Note: On tablet, the data-swipeable is always enabled". I tried to set it to false but as the docs say, it's still swipeable, there HAS to be a way to turn off the swiping.
ansancle ( 2014-10-01 20:28:07 +0800 )edit