Base solution for your next web application
Open Closed

Metronic Wizard component integration in Angular (Ver 5.5.0) #5242


User avatar
0
mmukkara created

Hi All,

I am trying to integrate Metronic Wizard component in Angular project.
<a class="postlink" href="http://keenthemes.com/metronic/preview/?page=crud/wizard/wizard-4&demo=default#">http://keenthemes.com/metronic/preview/ ... o=default#</a>

I get it working with adding Metronic wizard.js reference to angular.json. But with all the changes related to Visual Setting (Theme) in ABP, not sure how to set colour theme to wizard component.

[attachment=1:20t4mpja]1.PNG[/attachment:20t4mpja]

I need some help on how to make new components work with the visual settings theme colour and steps to follow.
[attachment=0:20t4mpja]2.PNG[/attachment:20t4mpja]

Thank you.
1.PNG
2.PNG


15 Answer(s)
  • User Avatar
    0
    ashgadala created

    Are you able to login into the app after compiling the app with default config?

  • User Avatar
    0
    mmukkara created

    Yes. App is working fine. No issues.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @mmukkara It seems like we haven't generated different theme options for Metronic components.
    I have created an issue here <a class="postlink" href="https://github.com/aspnetzero/metronic/issues/9">https://github.com/aspnetzero/metronic/issues/9</a>. We will include it into next release.

  • User Avatar
    0
    mmukkara created

    Thanks @ismcagdas . Will wait for the fix.

  • User Avatar
    0
    alirizaadiyahsi created

    Components get color from metronic base styles, so no need to create custom themes.

    NOTE: We upgraded metronic to v5.3. So this can be resolved at metronic side.

  • User Avatar
    0
    mmukkara created

    @alirizaadiyahsi, Do you mean this issue has been fixed in metronic 5.3? Which version of ANZ is upgraded to metronic 5.3?

    Thank you for a prompt reply.

  • User Avatar
    0
    alirizaadiyahsi created

    We fixed at v5.5.1

    Check this: <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/releases/tag/v5.5.1">https://github.com/aspnetzero/aspnet-ze ... tag/v5.5.1</a>

  • User Avatar
    0
    mmukkara created

    Still finding the same issue. What am I doing wrong?
    I have upgraded ANZ solution to 5.5.2 now.
    Copied whole wizard component from metronic (~\metronic_v5.1\default\dist\default\components\forms\wizard\wizard4.html)
    and added "src/assets/metronic/src/js/framework/components/general/wizard.js" to angular.json.

    Do I have to do anything more?

    Since I cannot attach html or txt file to this message, I have added metronic wizard component html code to this message.

    Form Wizard

    1
    Account Setup
    2
    Profile Setup
    3
    Billing Setup
    4
    Confirmation

    Client Details

    Please enter your first and last names
    We'll never share your email with anyone else
    Enter your valid phone in US phone format. E.g: 1-541-754-3010

    Mailing Address

    Street address, P.O. box, company name, c/o
    Appartment, suite, unit, building, floor, etc

    Account Details

    Please enter your preferred URL to your dashboard
    Your username to login to your dashboard
    Please use letters and at least one number and symbol

    Client Settings

    Please select user group
    Please select user communication options

    Billing Information

    Billing Address

    Delivery Type

    Client Details

    Nick Stone
    nick.stone@gmail.com
    +206-78-55034890

    Corresponding Address

    Headquarters 1120 N Street Sacramento 916-654-5266
    P.O. Box 942873 Sacramento, CA 94273-0001
    Polo Alto
    California
    USA

    Account Details

    sinortech.vertoffice.com
    sinortech.admin
    *********

    Client Settings

    Customer
    Phone, Email

    Billing Information

    Nick Stone
    *************4589
    10
    2018
    ***

    Billing Address

    Headquarters 1120 N Street Sacramento 916-654-5266
    P.O. Box 942873 Sacramento, CA 94273-0001
    Polo Alto
    California
    37505
    USA
  • User Avatar
    0
    mmukkara created

    In addition to the above message. After getting latest sample html code for wizard from metronic website, color schema picked up now in the wizard but wizard.js methods are not executed.

    Anyone know how to define anchors in the page (on div) and navigate with to the anchor section in angular.

    Thanks

  • User Avatar
    0
    ismcagdas created
    Support Team

    Have you checked Metronic's Angular sample <a class="postlink" href="http://keenthemes.com/metronic/preview/default/angular/crud/wizard/wizard-4">http://keenthemes.com/metronic/preview/ ... d/wizard-4</a> ?

  • User Avatar
    0
    mmukkara created

    Thanks for the pointer. I have looked at it and Metronic Angular Demo still used JS file and it is loaded as

    this._script.loadScripts('app-wizard-wizard-4',
    ['assets/demo/default/custom/crud/wizard/wizard.js']);
    

    Even then I don't see form on the right...
    [attachment=0:31jjo1wn]3.PNG[/attachment:31jjo1wn]

    I was tried to recreate with typescript and getting following error...
    "mWizard is not defined at...."

    I went through Metronic forums and found this....I implemented the same, but no use.
    [https://keenthemes.com/forums/topic/how-to-implement-form-wizard-in-my-angular-5-application-with-metronic-5-theme/
    ])

    Hope to solve this problem. Any help would be appreciated.

    Thanks
    3.PNG

  • User Avatar
    0
    ismcagdas created
    Support Team

    As I checked the code of wizard.js, WizardDemo.init() must be executed to convert html to Metronic's wizard.
    So, including wizard.js into angular.json must be done at first.

    Then, you can run WizardDemo.init() in the ngAfterViewInit method of your component.

  • User Avatar
    0
    system15 created

    I tried the above as mentioned but only the navigation steps would change when you clicked the save and continue button. I had to add some code to the wizard.js plugin file so that when you clicked the save and continue button the navigation and the content change.

  • User Avatar
    0
    ismcagdas created
    Support Team

    We haven't used this component actually.
    The best way is to download Metronic v5.3 on <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/releases/download/v5.5.1/metronic_v5.3.zip">https://github.com/aspnetzero/aspnet-ze ... c_v5.3.zip</a> and check the source code for <a class="postlink" href="http://keenthemes.com/metronic/preview/default/angular/crud/wizard/wizard-4">http://keenthemes.com/metronic/preview/ ... d/wizard-4</a> sample.

  • User Avatar
    0
    demo.solaru created

    how to integrate Metronic Wizard3 component in Angular?
    is there any documentation?