Socket
Socket
Sign inDemoInstall

primeng-shadowdom-directives

Package Overview
Dependencies
1
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    primeng-shadowdom-directives

Set of directives to fix PrimeNg "overlay" components got-chas when rendered inside ShadowDOM


Version published
Weekly downloads
967
decreased by-0.31%
Maintainers
1
Install size
601 kB
Created
Weekly downloads
 

Readme

Source

Primeng Shadowdom Directives

Set of directives to fix PrimeNg "overlay" components got-chas when rendered inside ShadowDOM

Below are list of components that currently supported (all directives start with prefix psd = PrimeNg ShadowDOM Directive):

  • Calendar (psdCalendar)
  • Dropdown (psdDropdown)
  • Dropdown inside Paginator (psdPaginator)
  • Menu (psdMenu)
  • Multi Select (psdMultiSelect)
  • Tooltip (psdTooltip)
  • Auto Complete (psdAutoComplete)
  • Cascade Select (psdCascadeSelect)
  • Color Picker (psdColorPicker)
  • Mega Menu (psdMegaMenu)
  • Menu Bar (psdMenuBar)
  • Confirm Popup (psdConfirmPopup)
  • Overlay Panel (psdOverlayPanel)
  • Slide Menu (psdSlideMenu)
  • Split Button (psdSplitButton)
  • Tiered Menu (psdTieredMenu)
  • Tree Select (psdTreeSelect)

To request for new component, please submit issue or PR

Installation

This package is available on npm registry. Install it with command:

npm install primeng-shadowdom-directives

Usage

Import this package into your module where you want to apply these directives (normally will be app.module.ts)


import { PrimeNGShadowDOMDirective } from 'primeng-shadowdom-directives';

@NgModule({
  imports: [
    PrimeNGShadowDOMDirective, // import here
    ...
  ],
})
export class AppModule { }

Then in your component file, apply the directives:

<!-- dropdown -->
<p-dropdown psdDropdown ...></p-dropdown>

<!-- calendar -->
<p-calendar psdCalendar ...></p-calendar>


<!-- tooltip -->
<button psdTooltip pTooltip="Hello World"></button>

<!-- menu -->
<p-menu psdMenu ...></p-menu>


<!-- multi select -->
<p-multiSelect psdMultiSelect ...></p-multiSelect>

<!-- and others -->

You can apply multiple directives in the same component. For example:

<p-calendar psdTooltip pTooltip="Hello World" psdCalendar></p-calendar>

Demo

Check projects/demo-app to see samples on how to use this package.

To run the demo, first run

npm install

Then build the directives:

npm run build

# watch mode
npm run watch

Finally start the demo-app:

npm start

Now you can access from browser at: http://localhost:4200

FAQs

Last updated on 12 Jul 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc