kendoMobileButton API

13 posts, 0 answers
  1. Shawn
    Shawn avatar
    30 posts
    Member since:
    Mar 2011

    Posted 04 Feb 2012 Link to this post

    I see that most of the .js API doesn't have docs. Will this be better later (since we're not getting the uncompressed source)?
  2. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 06 Feb 2012 Link to this post

    Hi Shawn,

    We are planning to improve and expand the documentation for the final release. So far, it turned out that several internal methods are useful, and have to be exposed end explained. 

    Can you please share what mobile button functionality you are looking for? It might be not only undocumented, but also not implemented.

    Thanks,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. Shawn
    Shawn avatar
    30 posts
    Member since:
    Mar 2011

    Posted 06 Feb 2012 Link to this post

    I'd like to pass in the icon and handler:

    $("mybutton").kendoMobileButton({
      icon: "hand",
      click: function (event) {
        alert("foo");
      }
    });

    I'd also like doc'd what is passed in each of the events you expose.
  5. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 07 Feb 2012 Link to this post

    Hi,

    Thanks for the feedback.

    Although the data attributes and the constructor options are interchangeable in general, the icon setting is not recognized in the options parameter of the button (we will fix that for the final release). It is an overlook on our side. 

    Since all mobile widgets support event handlers in the constructor options (and pass similar parameters to the event handlers), we are going to document this in a general Kendo UI Mobile help topic.

    What is also coming for the final release is declaring events via data attributes.

    Regards,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Dan Cornish
    Dan Cornish avatar
    28 posts
    Member since:
    Apr 2010

    Posted 11 Feb 2012 Link to this post

    How do I enable/disable a button?  I can't find it in the documentation...

    <a href="" id="Save" onclick="saveAppointment()" data-role="button">Save</a>

    Thanks
  7. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 13 Feb 2012 Link to this post

    Hello Dan,

     
    Currently, you cannot enable/disable a mobile button. I will suggest you show/hide it instead of disable it. I will forward your request to our developers for further investigation and consideration.

    Regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. Jay
    Jay avatar
    45 posts
    Member since:
    Dec 2011

    Posted 13 Feb 2012 Link to this post

    I would also like to disable buttons.  Hiding them is not always the most intuitive thing to do to the users.
  9. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 14 Feb 2012 Link to this post

    Hello Jay,

     
    I will log your request in our internal system. If other users wans such functionality we will log it for further investigation. You can also open an User Voice item for this functionality.

    Regards,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  10. Ben
    Ben avatar
    1 posts
    Member since:
    Jan 2008

    Posted 19 Feb 2012 Link to this post

    +1 for disabling buttons.  Also, the user voice link posted can't be found.  I believe you meant the URL to be: http://kendo.uservoice.com
  11. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 20 Feb 2012 Link to this post

    Hi Ben,

    That is correct  - apologies for the discrepancy. I already updated the link in Georgi's response.

    Regards,
    Sebastian
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  12. Robert
    Robert avatar
    198 posts
    Member since:
    Aug 2009

    Posted 09 Nov 2012 Link to this post

    Georgie,

    How do you hide a button?  Using Jquery seems to do nothing: 

        function hideButton(e) {
          e.preventDefault();
          $("lnkLogout").hide();
        }
  13. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3707 posts

    Posted 12 Nov 2012 Link to this post

    Hello Robert,

     
    After a quick review of the code snippet, I believe that the "lnkLogout" selector will not find the required links. If the "lnkLogout" is a CSS class then you need to modify the selector like this:

    1.$(".lnkLogout").hide();
    Check this for more information.

    Greetings,
    Georgi Krustev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  14. Robert
    Robert avatar
    198 posts
    Member since:
    Aug 2009

    Posted 12 Nov 2012 Link to this post

    Strangely enough.... today it's working. 
Back to Top
Kendo UI is VS 2017 Ready