0.0.7 • Published 2 years ago

ngx-collapse-details v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

NgxCollapseDetails

logo-details

#Angular component for extra content

npm NPM

details

How to install

Below are ways to install the library using npm or yarn:

npm i ngx-summary-details

How to use default component

import { BrowserModule } from "@angular/platform-browser";
import { NgModule } from "@angular/core";
import { NgxCollapseDetailsComponent } from "ngx-collapse-details";
import { AppComponent } from "./app.component";
@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, NgxCollapseDetailsComponent],
  providers: [],
  bootstrap: [AppComponent],
})
export class AppModule {}
<ngx-summary-details>
  <ul>
    <li>Teste 1</li>
    <li>Teste 2</li>
  </ul>
</ngx-summary-details>

How to use custom component

<ngx-summary-details
  summary="Teste"
  width="60%"
  bgColor="#555"
  color="orange"
  borderRadius="5px 10px 15px 20px"
  bgHover="purple"
  boxShadow="0 0 5px 5px orange"
  colorHover="blue"
>
  <ul>
    <li>Teste 1</li>
    <li>Teste 2</li>
  </ul>
</ngx-summary-details>

Properties

This component is an abstraction of a collapse, but using native HTML properties.

PropstyperequiredDescription
widthstringwidth of collapse
summarystringsummary of collapse
bgColorstringBackground color of summary
bgHoverstringBackground color hover of summary
colorstringColor of summary
colorHoverstringColor hover of summary
borderRadiusstringBorder radius of summary
borderDetailstringBorder of summary
boxShadowstringBox shadow of summary
0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago