Angular Collapsible Component Styled with Materialize CSS

angular2-collapsible is a materialized CSS Collapsible component that helps you create content switchers and accordion controls.

materialize collapsible not working, css collapse animation, angular material collapse, collapsible ui

How to make use of it:


npm install materialize-css --save

1. Open src / styles.css and add the following line to enable Materialize CSS styles:

@import '~materialize-css/dist/css/materialize.min.css';

2. Then from your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; // <-- import required BrowserAnimationsModule
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import your library
import { CollapsibleModule } from 'angular2-collapsible'; // <-- import the module

  declarations: [
  imports: [
    BrowserAnimationsModule,  // <-- include required BrowserAnimationsModule
    CollapsibleModule // <-- include angular2-collapsible module
  bootstrap: [AppComponent]
export class AppModule { }


OptionTypeDefault valueDescription
type{ ‘accordion’ | ‘expandable’ }‘accordion’The type of the collapsible list: ‘accordion’ or ‘expandable’

Collapsible list options

Collapsible table options

OptionTypeDefault valueDescription
borderedbooleanfalseMakes the table bordered
borderedHorizontallybooleanfalseMakes the table bordered horizontally only
borderedVerticallybooleanfalseMakes the table bordered vertically only
stripedbooleanfalseMakes the table striped
stripedOddColorstring‘rgba(242,242,242,0.8)’Color of an odd striped row
stripedOddTextColorstring‘black’Text color of an odd striped row
stripedEvenColorstring‘transparent’Color of an even striped row
stripedEvenTextColorstring‘black’Text color of an even striped row
highlightbooleanfalseHighlight table rows on mouse hover
highlightColorstring‘rgba(222,222,222, 0.8)’Color of a highlighted row
highlightTextColorstring‘black’Text color of a highlighted row
activeColorstring‘rgba(212,212,212, 0.8)’Color of an active row
activeTextColorstring‘black’Text color of an active row
centeredbooleanfalseCenter align all the text in the table
[ ] TODO: responsivebooleanfalseMakes the table horizontally scrollable on smaller screen widths
selectbooleanfalseAllows to select rows
selectMultipleRowsbooleanfalseAllows multiple rows
selectColorstring‘rgba(212,212,212, 0.8)’Allows multiple rows
selectTextColorstring‘black’Text color of a selected row
allowDeselectingRowsbooleanfalseAllows deselecting selected rows
allowKeyboardNavigationbooleantrueAllows navigation between table rows using arrow keys
noTextSelectbooleanfalseDisables user select within the table

angular 4 materialize css collapsible library plugin/github

See Demo And Download

Official Website(DmitriiSer): Click Here

This superior jQuery/javascript plugin is developed by DmitriiSer. For extra advanced usage, please go to the official website.

Related Posts


[Animation] Bootstrap Multi-Level Responsive Dropdown Menu

Bootstrap-based multi-level dropdown navigation menu with cool animations. The dropdown on Hover is a jQuery plugin used to create Bootstrap multi-level scroll-triggered dropdown menus with CSS3 animations…


HTML 5 File Input Optimized for Bootstrap 4.x./3.x with File Preview | Bootstrap Fileinput

bootstrap-fileinput is an improved HTML 5 file input  Bootstrap 5.x, 4.x and 3.x with file preview for different files, provides multiple selections, resumable section uploads, and more….


Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…


Simple Alert, Confirm, Prompt Popup Using Vanilla JavaScript Library | attention.js

JavaScript provides various built-in functionality to display popup messages for different purposes. Attention JS is a vanillaJS plugin used to create a custom alert, confirm, or Prompt…


Lightweight Bootstrap 4 Toast Notification Plugin | BS4 Advanced Toast

A lightweight Bootstrap 4 Toast Notification plugin integrated with JS/jQuery. bs4-toast.js is a JavaScript library that enhances the native Bootstrap toast component with icons, buttons, callbacks, and…


How to Create Audio Visualizations with JavaScript | Wave.js

Audio Visualizer Library – wave.js is a vanilla javascript audio visualization library that provides 20+ creative audio visualization effects to bring more engagement to your visitor. Contribute…

Leave a Reply

Your email address will not be published. Required fields are marked *