facebook

Enable disable action

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #345020 Reply

    Publio Decio
    Member

    Is possible enable disable an action at run time (image button)?

    #345024

    Hi,

    MobiOne widgets are light-weight pseudo widgets. There is not an api for disabling (yet). Can you share your requirements for disable, e.g., visually reflect disabled state, disable click/touch handling, …? Perhaps we can make some recommendations based on your requirements.

    #345075

    Publio Decio
    Member

    It would be interesting to indicate an action name, and do not generate automatically, because this may change in the generation phase. That way I can work on it. At this time I have overcome the problem by using 2 buttons stacked one on top transparent without action, and game opacity to simulate the action disabled.
    Bye
    Alessandro

    #345077

    Unknown Author
    Participant
    
         $('#m1-page_name-push1').css('visibility', 'hidden');
         $('#m1-page_name-push2').css('visibility', 'visible');
    

    -1tc

    #345326

    Hi Alessandro,

    One approach is to set pointer-events to none and change image to disabled one:

    $("m1-test-image1").css("pointer-events","none");

    Change image:

    $("<style type='text/css'>#m1-test-image1{ -webkit-border-image: url(images/disabled.png) 1 1 1 1 stretch stretch; }</style>").appendTo("head");

    Let me know how it goes for you.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Enable disable action

You must be logged in to post in the forum log in