Giter VIP home page Giter VIP logo

Comments (5)

sunil-digicorp avatar sunil-digicorp commented on May 30, 2024

Hi,
To call a modal box there are two attributes required - data-target (which contains your Form ID) and data-toggle (which contains a static value - modal). With these two attributes, you can easily call a modal even in the li of the sidebar in admin template.
Hope this may help you.

from propeller.

mohammed1955 avatar mohammed1955 commented on May 30, 2024

hi buddy, i worked extactly same you say but not working

from propeller.

sunil-digicorp avatar sunil-digicorp commented on May 30, 2024

In that case, it would be great if you can share your code snippet or a link, where you are facing the issue. This will help us in providing the right solution.

from propeller.

mohammed1955 avatar mohammed1955 commented on May 30, 2024

when li is direct child of ul that have nav, pmd-sidebar-nav classes modal work.
BUT when i attach necessary modal class to li in ul that is submenu and have have dropdown,pmd-dropdown classes not work.bro you should try this in admin template to find out this problem

from propeller.

sunil-digicorp avatar sunil-digicorp commented on May 30, 2024

Hello,

Thank you for elaborating your issue with us. Yes, you are right. Modal component does not work when called on sidebar's sub menu.

To make it work, please remove below js code snippet from propeller.min.js:

$( ".pmd-sidebar .dropdown-menu, .pmd-navbar-sidebar .dropdown-menu" ).click(function(event) { event.stopPropagation(); });

We added above code purposely because bootstrap dropdown get close automatically on click. To prevent it from closing, we added that script.

Hope this will solve your problem.

from propeller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.