New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

l3mon-library

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

l3mon-library

Library includes:

latest
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

Angular L3mon UI Library

Library includes:

  • input - SELECT

Get Started

Step 1: Install l3monLibrary:

NPM

npm i l3mon-library

Step 2: Import the L3monLibraryModule

import { L3monLibraryModule } from 'l3mon-library';

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

Usage: l3l-select

In template use component with your custom options

<l3l-select [changeValue]="getSelectedItem()" [customStyle]="setCustomStyle()">
    <div l3l-label>{{getSelectedItem()}}</div>
    <div options>
        @for (item of getItems(); track $index) {
            <div (click)="selectItem(item)" class="item">
                {{item.name}}
            </div>
        }
    </div>
</l3l-select>

Ts config

@Component({...})
export class ExampleComponent {

    items = [
    {
      id: 0,
      name: 'item 0'
    },
    {
      id: 1,
      name: 'item 1'
    },
    {
      id: 2,
      name: 'item 2'
    }
  ]

  selectedItemId = 0

  selectItem(item: any){
    this.selectedItemId = item.id
  }

  getSelectedItem(){
    return this.items.find(item => item.id == this.selectedItemId)?.name
  }

  getItems(){
    return this.items.filter(item => item.id !== this.selectedItemId)
  }

  setCustomStyle(){
    let style: CustomStyle = {
      heightInput: '30px',
      sideInputPadding: '0.5rem',
      backgroundInput: '#fff',
      borderInput: '1px solid #ccc',
      borderInputRadius: '6px',
      backgroundOptions: '#ebebeb',
      borderOptionsRadius: '6px'
    } 
    return style
  }
}

Features input - SELECT

  • custom creation of drop-down options
  • custom input look
  • custom look through prepared objects

Authors

  • @L3monPL

Keywords

angular 17

FAQs

Package last updated on 04 Feb 2024

Did you know?

Socket

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