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

Custom Dialogue In Angular2 nativescript

3 Answers 121 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.
Paulson
Top achievements
Rank 1
Paulson asked on 22 Feb 2017, 02:35 PM

Hi Nativescript team,

   I want to create a custom dialog popup, now have five types of dialog boxes. This all dialogue boxes handling in ts or js itself but now i want to create separate html page and css page using separate files. Is it possible in  Angular2 nativescript?

3 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 23 Feb 2017, 06:36 AM
Hi Paulson,

From what I've understood you are seeking for a way to reuse a created HTML page inside your Angular application.If that is the case you can achieve that using the selector attribute for your Angular component.
Selectors are pretty much what the name suggest - a way to reuse given component via its selector name.
(very good explanation can be found here)

e.g. for using a selector to reuse an HTML template.
This selector will allow the HTML template to be reused with tag 
<sdk-child-component></sdk-child-component>
Like reused in this HTML page here.

e,g, for using a selector to reuse an Angular directive.
The directive is later reused on each page like this one here.

Once again I am not 100% sure if that is the case you are trying to solve - if you need a different behavior please provide more detailed information, and if applicable, a sample code snippet.

Regards,
Nikolay Iliev
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Paulson
Top achievements
Rank 1
answered on 23 Feb 2017, 08:41 PM

Hi,

 Thanks, how can i fix fab button on the bottom of screen? it should be overlay background data should be able to scroll 

0
Nick Iliev
Telerik team
answered on 24 Feb 2017, 07:35 AM
Hi Paulson,

The easiest way to create the desired functionality is to use nativescript-floatingactionbutton plugin.
Its sole purpose is the creation of floating button over the common scrollable screens.

For your convenience, I've created this sample application demonstrating the basic usage of the plugin.

Regards,
Nikolay Iliev
Telerik by Progress
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
General Discussion
Asked by
Paulson
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Paulson
Top achievements
Rank 1
Share this question
or