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

Floating button above listview

2 Answers 218 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
ruchin
Top achievements
Rank 1
ruchin asked on 21 Mar 2016, 11:32 AM

Hi,

Is it possible to have a floating button in kendo mobile?I would like to have a button above a listview,so that when i scroll the listview the button does not move.

Something like the gmail mobile app, which has a floating compose mail button.

Is it possible ?If yes,can somebody tell me how to achieve it.

Thanks,

Ruchin Dayal.

2 Answers, 1 is accepted

Sort by
0
Accepted
Tsvetina
Telerik team
answered on 23 Mar 2016, 03:51 PM
Hello Ruchin,

To display a fixed button in the bottom right corner of your app, you can define it within the app footer and then position it absolutely:
<div data-role="footer">
    <a data-role="button" id="myButton" data-icon="add"></a>
</div>
#myButton {
    position: absolute;
    top: -50px;
    right: 14px;
}

If it needs to be visible in a single view, you can define a separate Layout for this view.

You can see a basic sample in this Dojo: http://dojo.telerik.com/iNiNO.

Regards,
Tsvetina
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
ruchin
Top achievements
Rank 1
answered on 01 Apr 2016, 08:54 AM

Hi Tsvetina,

Thank you for your reply.That is exactly  what I needed.Works great!!!

Regards,

Ruchin Dayal.

Tags
General Discussion
Asked by
ruchin
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
ruchin
Top achievements
Rank 1
Share this question
or