GithubHelp home page GithubHelp logo

portal-workshop's Introduction

Portals

Demo

Chapter: Intro

  1. problem: modals inside relative element
  2. solution: only 1 modal with portal with positon escaping

Portals work like inverted slots in Vue, but they don't render the slot inside the components, but somehwere else on your app or maybe even outside the app. Who knows :D

Chapter: Installing

  1. Install Portal 2.0 Library
  2. Add Portals to the App

Chapter: Syntax and Components

  1. portal component
  2. portal-target component
  3. seding first data to through the portal
  4. turn off the portal
  5. 1 receive multiple portals in one target
  6. 1a changing the order of tne ported items
  7. remove the wrapping of the portal target
  8. change the rendered html element of the portal

explain portal and portal-target components disabling portal-target and why do we need mounting-portal

Chapter: Exercise

  1. tooltips
  2. modals
    1. creating reusable modal portal
    2. passing portal actions via scoped slots
    3. add focus lock to the modal
    4. disable scrolling then modal is open

Chapter: Advanced

  1. portals in another window mounting-portal component
  2. portals outside of vue
  3. portals with scoped slots

portal-workshop's People

Contributors

aleksejdix avatar

Watchers

 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.