Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lct-components

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lct-components

LCT basic components

  • 0.4.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
62
decreased by-75.2%
Maintainers
1
Weekly downloads
 
Created
Source

LctComponents

This library was generated with Angular CLI version 12.1.0.

How to use

npm i lct-components --save  
  • Import LctComponentsModule to component module
  • Add <lct-select></lct-select> to html component
  • add change title attribute
  • add options attribute to select options
  • get value selected with (value) when select change value

Example

Select

<lct-select   
    title="Title to component"   
    placeholder="Select option"
    (value)="changeSelect($event)"   
    [options]="['Option one', 'option two']]"  
>  
</lct-select>  

Select multiple

<lct-select-multiple [list]="list2"
                     placeholder="select options"  
                     title="Insert title"  
                     (shareCheckedList)="shareCheckedList($event)"  
                     (shareIndividualCheckedList)="myFunction($event)">  
</lct-select-multiple>  
Input Text
<lct-input-text  
  icon="assets/img/keyboard.svg"  
  [showIcon]="true"  
  (iconClick)="myFunction()"  
  placeholder="Insert placeholder"  
  [(ngModel)]="value"
  (enterEmitted)="myFunctionEnter($event)"  
  iconPosition="right"  
  title="Insert title"  
></lct-input-text>  
  
<lct-input-text  
  [disabled]="true"  
  icon="assets/img/keyboard.svg"  
  [showIcon]="true"  
  (iconClick)="myFunction()"  
  (enterEmitted)="myFunctionEnter($event)"  
  iconPosition="left"  
></lct-input-text>  
  
<lct-input-text  
  (enterEmitted)="myFunctionEnter($event)"
  [(ngModel)]="value"  
></lct-input-text>  

Buttons

  
<lct-button  buttonType="primary" title="Primary"></lct-button>  
  
<lct-button buttonType="secondary" title="Secondary"></lct-button>  
  
<lct-button  buttonType="error" title="Error"></lct-button>  
  
<lct-button buttonType="success" title="Success"></lct-button>  

tooltip directive

  
<lct-button  
  buttonType="primary"
  title="Primary"
  lctTooltip
  tooltipText="Tooltip from button 1"
  position="right"
  color="tertiary"
></lct-button>  
  
<lct-button 
  buttonType="secondary" 
  title="Secondary"
  lctTooltip
  tooltipText="Tooltip from button 2"
  position="top"
  marginBottom="55px"
  color="primary"
  ></lct-button> 

  <lct-button 
  buttonType="secondary"
   title="Tienda"
   tooltipText="FALABELLA LYON " 
   version="3.4.5" 
   dateVersion="10/08/2022" 
   icon="./assets/img/Tienda.svg" 
   lctModalTooltip>
   </lct-button> 

Overlay loading

yourComponent.html  
...  
  
<lct-loading #lctLoading></lct-loading>  
  
...  
-----------------------------------------------------------  
yourComponent.ts  
...  
@ViewChild('lctLoading') lctLoading!: LoadingComponent;  
...  
  
  
MethodDescriptionExample
show(): voidshow overlaythis.lctLoading.show()
dismiss(): voidhide overlaythis.lctLoading.dismiss()

Version 0.4.5

[(ngModel)] Can only be used at the moment for:

lct-input-text
lct-switch

Keywords

FAQs

Package last updated on 29 Sep 2022

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc