Skip to content

Ajustee/mde-popover

 
 

Repository files navigation

Angular Popover

A fork of https://github.com/joejordanbrown/popover and updated for Angular 12.

Links

Original @material-extended/mde Popover Demo | StackBlitz Template

Project status

Angular Popover is production ready.

This was originally created as an example for a @angular/material issue feature request. Issue can be found at angular/material2#2691

If you'd like to contribute please create an issue or pull request.

Examples

Material theme picker

Material theme picker

Standard popover

image

image

Google+ style popover

image

Installation

Install npm package using:

yarn add @ajustee/mde-popover or npm install @ajustee/mde-popover

Install required packages @angular/cdk

yarn add @angular/cdk or npm install @angular/cdk

Initial setup

The CDK overlays depend on a small set of structural styles to work correctly. If you're using Angular Material, these styles have been included together with the theme, otherwise if you're using the CDK on its own, you'll have to include the styles yourself. You can do so by importing the prebuilt styles in your global stylesheet:

@import '~@angular/cdk/overlay-prebuilt.css';

Import module

app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';


import { AppComponent } from './app.component';
import { MdePopoverModule } from '@ajustee/mde-popover';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    MdePopoverModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }

License

MIT © Joe Jordan Brown

Angular Popover by UIXD

About

Angular CDK Popover, no default style, examples using @angular/material

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 65.4%
  • HTML 23.1%
  • SCSS 11.1%
  • Sass 0.4%