Ng Self-Adjustable Card
An angular material card that automatically adjusts to the height of the parent
How to install?
- Include the ng-self-adjustable-card dependency into your angular package.json file.
"ng-self-adjustable-card": "[version]"
- Then run npm install
- Import "SelfAdjustableCardComponent" in your NgModule
How to use?
You can insert the component in your HTML with the following syntax:
This is a Card Title/Header This is a Card content
Furthermore, you can pass 2 pairs of parameters to the card:
- titleAlignHorizontal and titleAlignVertical: with these you can set the alignment of the title.
- contentAlignHorizontal and contentAlignVertical: with these you can set the alignment of the content The values are the same as those of angular material layout alignment
Example:
This is a Card Title/Header This is a paragraph into card content This is a div into card content