Pages UI
Search…
Collapse

Importing

First import it to your app module or any submodule as you wish
1
import { pgCardModule} from './@pages/components/card/card.module';
2
@NgModule({
3
imports: [pgCardModule,...]
4
})
5
export class AppModule(){}
Copied!

How to use

HTML
Typescript
1
<pg-collapseset>
2
<pg-collapse [pgTitle]="'Collapsible Group Item'">
3
Click headers to expand/collapse content that is broken into logical sections, much like tabs. Optionally, toggle sections open/closed on mouseover.
4
</pg-collapse>
5
<pg-collapse [pgTitle]="'Typography Variables'">
6
<h1 class="light">
7
go explore the <span class="semi-bold">world</span>
8
</h1>
9
<h4>
10
small things in life matters the most
11
</h4>
12
<h2>
13
Big Heading <span class="semi-bold">Body</span>,
14
<i>Variations</i>
15
</h2>
16
<h4>
17
<span class="semi-bold">Open Me</span>, Light , <span class=
18
"semi-bold">Bold</span>, <i>Everything</i>
19
</h4>
20
<p>
21
is the art and technique of arranging type in order to make language visible. The arrangement of type involves the selection of typefaces, point size, line length, leading (line spacing), adjusting the spaces between groups of letters (tracking)
22
</p>
23
<p>
24
and adjusting the Case space between pairs of letters (kerning). Type design is a closely related craft, which some consider distinct and others a part of typography
25
</p>
26
</pg-collapse>
27
<pg-collapse [pgTitle]="'Easy Edit'">
28
Click headers to expand/collapse content that is broken into logical sections, much like tabs. Optionally, toggle sections open/closed on mouseover.
29
</pg-collapse>
30
</pg-collapseset>
Copied!
1
constructor() { }
2
3
ngOnInit() {
4
}
5
isLoading:boolean=false;
6
errorMessage:boolean=false;
7
message:string = "Something went terribly wrong. Just keep calm and carry on!";
8
9
sampleRefresh(){
10
this.isLoading = true;
11
this.errorMessage = false;
12
setTimeout(()=>{
13
this.isLoading = false;
14
this.errorMessage = true;
15
},3000);
16
}
Copied!

API

Property
Description
Type
Default
Title
Set title to a collapse component
string
null
Copy link