Skip to content

AleksejDix/portal-workshop

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published