Basic Usage
The expandable section is a CSS-only component which provides a common mechanism to group content in a panel that can be expanded/collapsed using the caret on the left of the title.
- HTML
<div class="t-content" ng-controller="basicExpandableSectionExampleController"> <div class="c-expandableSection" ng-class="{ 'is-expanded': isExpanded}"> <div class="c-expandableSection-header"> <div class="c-expandableSection-expander" ng-click="handleExpansion()"> <inv-icon glyph="'plus-square'" ng-show="!isExpanded"></inv-icon> <inv-icon glyph="'minus-square'" ng-show="isExpanded"></inv-icon> </div> <inv-icon class="c-expandableSection-logo" glyph="'question_mark'"></inv-icon> <div class="c-expandableSection-heading">TV, Mobile and Wireline Triple Play No DG</div> </div> <div class="c-expandableSection-content" ng-if="isExpanded"> This is some content! </div> </div> </div>