npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ngx-fixed-settings-bar

v13.0.1

Published

A simple Angular fixed settings bar component with dropdown menu with help of Bootstrap

Downloads

4

Readme

NgxFixedSettingsBar

This is an Angular module. It helps with show a fixed settings bar with dropdown menu on the right side with help of Bootstrap.

npm downloads

Check out the demo!

Note: v13.0.1 is out and supports Angular 13!

Install

  1. Install by running npm install ngx-fixed-settings-bar

  2. Add NgxFixedSettingsBarModule to your app.module.ts imports:

import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';
import { NgxFixedSettingsBarModule } from 'ngx-fixed-settings-bar';

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

Important: This module work with bootstrap, popper, jquery and bootstrap-material-design, so install & import of these are REQUIRED!!

  1. Next step is install dependencies: npm install bootstrap bootstrap-material-design jquery popper.js

  2. After that you have to import them:

angular.json


"scripts": [
              "node_modules/jquery/dist/jquery.js",
              "node_modules/popper.js/dist/umd/popper.js",
              "node_modules/bootstrap-material-design/dist/js/bootstrap-material-design.min.js"
            ]

In case of scss:

styles.scss


@import "~bootstrap/scss/bootstrap";

In case of css:

angular.json


"styles": [
    "./node_modules/bootstrap/dist/css/bootstrap.css"
]

OR

index.html


<head>
    ...
    <link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.css">
    ...
</head>

Basics

Usage

You can use this module easily after imports. Just use ngx-fixed-settings-bar tag in your html and set settings bar icon and body. For example:

app.component.html

<ngx-fixed-settings-bar>
    <!--Mark icon container with `settings-icon` attribute-->
  <div settings-icon>
    Icon
  </div>
    <!--Mark body container with `settings-body` attribute-->
  <div settings-body>
    Body
  </div>
</ngx-fixed-settings-bar>

Override Default Styles

Currently you can only set settings bar's top, background and transform-origin (x-placement) styles with config. Default config looks like this:

...

export class AppComponent {
    config: INgxFixedSettingsBarStyleConfig = {
        top: 115,
        backgroundColor: "rgba(30,30,30,0.5)",
        xPlacement: "bottom-end"
    };

    ...
}

And give this config to Component through styleConfig attribute like an @Input()


<ngx-fixed-settings-bar [styleConfig]="config">
...
</ngx-fixed-settings-bar>

INgxFixedSettingsBarStyleConfig properties

| Property | Type | | --- | --- | | top | number? | | backgroundColor | string? | | xPlacement | string?: bottom-start, bottom-end, top-start, top-end |