-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(collapse): add demo with inline display (#4630)
fixes #2473
- Loading branch information
Showing
4 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
demo/src/app/components/+collapse/demos/inline-display/inline-display.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<button type="button" class="btn btn-success" (click)="collapse.display='inline-block'" | ||
aria-controls="collapseBasic">Inline-block | ||
</button> | ||
<button type="button" class="btn btn-primary" (click)="collapse.display='none'" | ||
aria-controls="collapseBasic">None | ||
</button> | ||
<hr> | ||
<div id="collapseBasic" [collapse]="!isCollapsed" #collapse="bs-collapse" class="card card-block card-header"> | ||
<div class="well well-lg">Some content</div> | ||
</div> |
9 changes: 9 additions & 0 deletions
9
demo/src/app/components/+collapse/demos/inline-display/inline-display.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'inline-display-demo', | ||
templateUrl: './inline-display.html' | ||
}) | ||
export class InlineDisplayDemoComponent { | ||
isCollapsed = false; | ||
} |