This is a migrated thread and some comments may be shown as answers.

kendoMobileButton API

12 Answers 270 Views
Button (Mobile)
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 1
Shawn asked on 04 Feb 2012, 11:53 PM
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)?

12 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 06 Feb 2012, 09:03 AM
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!
0
Shawn
Top achievements
Rank 1
answered on 06 Feb 2012, 09:14 AM
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.
0
Petyo
Telerik team
answered on 07 Feb 2012, 10:25 AM
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!
0
Dan Cornish
Top achievements
Rank 1
answered on 11 Feb 2012, 09:53 PM
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
0
Georgi Krustev
Telerik team
answered on 13 Feb 2012, 05:02 PM
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!
0
Jay
Top achievements
Rank 2
answered on 13 Feb 2012, 07:27 PM
I would also like to disable buttons.  Hiding them is not always the most intuitive thing to do to the users.
0
Georgi Krustev
Telerik team
answered on 14 Feb 2012, 04:45 PM
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!
0
Ben
Top achievements
Rank 1
answered on 20 Feb 2012, 03:31 AM
+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
0
Sebastian
Telerik team
answered on 20 Feb 2012, 01:05 PM
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!
0
Robert
Top achievements
Rank 1
answered on 09 Nov 2012, 08:06 PM
Georgie,

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

    function hideButton(e) {
      e.preventDefault();
      $("lnkLogout").hide();
    }
0
Georgi Krustev
Telerik team
answered on 12 Nov 2012, 07:04 AM
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!
0
Robert
Top achievements
Rank 1
answered on 12 Nov 2012, 02:41 PM
Strangely enough.... today it's working. 
Tags
Button (Mobile)
Asked by
Shawn
Top achievements
Rank 1
Answers by
Petyo
Telerik team
Shawn
Top achievements
Rank 1
Dan Cornish
Top achievements
Rank 1
Georgi Krustev
Telerik team
Jay
Top achievements
Rank 2
Ben
Top achievements
Rank 1
Sebastian
Telerik team
Robert
Top achievements
Rank 1
Share this question
or