Giter Club home page Giter Club logo

lightning-modal-example's Introduction

Lightning Component Modal Example

A quick demonstration of creating a Salesforce Lightning Component example for creating a modal that animates both on open and close.

src/aura/Modal_Example

A quick demo to show the three different types of modals, and handle the onclose event that comes back in order to toggle the isOpen attribute of the modal. The isOpen attribute may be handled differently depending on your use-case.

src/aura/Modal_Event

A component event used to pass back the onclose event to the parent component.

src/aura/Modal_Basic

A simple show/hide based on the toggling of the isOpen, and removing the modal from the DOM directly on change of the attribute. Basic modal toggling

src/aura/Modal_Animation

A modal that uses a quick setTimeout() function in order to add a class to the modal, which can assist in animation upon opening. Due to the reliance on the isOpen attribute, animation on close does not work. Modal toggling with animation upon opening

src/aura/Modal_Final

A modal with that uses a different method in order to enable animation upon opening and closing a modal. Modal_Final relies a different method that uses the isOpen attribute indirectly to control the 4 stages of openState: opening, open, closing, and closed. openState is what then finally removes the HTML from the DOM upon closing. A lightning component modal with animation upon opening and closing of the modal

lightning-modal-example's People

Contributors

jonbalza avatar

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.