1.1.0 • Published 8 months ago

@ngx-yanis/ngx-details v1.1.0

Weekly downloads
-
License
-
Repository
-
Last release
8 months ago

ngx-details

Angular wrapper for details native DOM element.

Compatibility

  • Angular 16.x
  • Chrome
  • Edge
  • Firefox

Accessibility

This component is a11y friendly.

Demo

You can see a live demo here.

Installation

npm install --save @ngx-yanis/ngx-details

Then import module in your project:

import { NgxDetailsModule } from '@ngx-yanis/ngx-details';

@NgModule({
  imports: [
    ...
    NgxDetailsModule
  ]
})
export class AppModule { }

Usage

<details ngxDetails>
  <summary> Text which will be display to summarize the content. </summary>
  <p> the rest of this content will be displayed only when user interact with the details tag. </p>
</details>

Available Input/Output

To know if the details tag is open or closed, you can use the following input/output:

<details ngxDetails (isOpen)="myCallback($event)">

To control the details tag, you can use the following input/output:

<details ngxDetails [(open)]="someBooleanVariable">

General Information

This library is powered by Nx. Source are available on Github.

1.1.0

8 months ago

1.0.4

10 months ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago