Custom Dialogue In Angular2 nativescript

Thread is closed for posting
4 posts, 0 answers
  1. Paulson
    Paulson avatar
    54 posts
    Member since:
    Apr 2016

    Posted 22 Feb 2017 Link to this post

    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?

  2. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    351 posts

    Posted 23 Feb 2017 Link to this post

    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.
  3. Paulson
    Paulson avatar
    54 posts
    Member since:
    Apr 2016

    Posted 23 Feb 2017 Link to this post

    Hi,

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

  4. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    351 posts

    Posted 24 Feb 2017 Link to this post

    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.
Back to Top