Skip to content

Commit f7a2634

Browse files
committed
docs: widget documentation update
1 parent 143c2d9 commit f7a2634

File tree

4 files changed

+42
-6
lines changed

4 files changed

+42
-6
lines changed

src/views/widgets/Widget04.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
### Widget04
2-
This widget style depends on type property which defines which social widget background color and icon will be used (i.e facebook, twitter, linkedin, google-plus). Inside component there is slot for placing data chart.
2+
This widget style depends on type property which defines which social widget background color and icon will be used (i.e facebook, twitter, linkedin, google-plus). Inside component there is default slot for placing data chart.
33

44
prop | default
55
--- | ---
@@ -11,7 +11,5 @@ leftFooter | `'leftFooter:string'`
1111

1212

1313
#### Example:
14-
> <widget04 type="linkedin" rightHeader="500+" rightFooter="contracts" leftHeader="292" leftFooter="feeds">
15-
> <line-chart1 chartId="linkedIn" :data='[15, 22, 34, 46, 58, 70, 68, 58, 52, 60, 64, 71]'
16-
> label='Contracts' style='height:100px' backgroundColor='rgba(255,255,255,.1)'/>
17-
> </widget04>
14+
> <widget04 type="linkedin" rightHeader="500+" rightFooter="contracts"
15+
> leftHeader="292" leftFooter="feeds"/>

src/views/widgets/Widget06.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
### Widget06
22

3-
This widget can style is defined by cardClasses.
3+
This widget can style is defined by cardClasses. Inside component there is additional slot for chart (name="chart").
44

55
prop | default
66
--- | ---

src/views/widgets/Widget07.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Widget07
2+
3+
This widget can style is defined by cardClasses. Inside component there is default slot for additional data (i.e. chart).
4+
5+
prop | default
6+
--- | ---
7+
cardClasses | `'bg-primary'`
8+
rightHeader | `'rightHeader:string'`
9+
rightFooter | `'rightFooter:string'`
10+
leftHeader | `'leftHeader:string'`
11+
leftFooter | `'leftFooter:string'`
12+
13+
> <widget07 rightHeader='SALE' rightFooter='Today 6:43 AM'
14+
leftHeader='$1.890,65' leftFooter='+432,50 (15,78%)'>
15+
<line-chart1 style="height:40px" chartId="widget07_line1" label='Sales'
16+
:data='[10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]' />
17+
<bar-chart1 style="height:40px" chartId="widget07_bar1" label='Sales'
18+
:data='[10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]'/>
19+
</widget07>

src/views/widgets/Widget08.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
### Widget08
2+
3+
This widget can style is defined by cardClasses. Inside component there is default slot for additional data (i.e. chart).
4+
5+
prop | default
6+
--- | ---
7+
cardClasses | `'bg-primary'`
8+
rightHeader | `'rightHeader:string'`
9+
rightFooter | `'rightFooter:string'`
10+
leftHeader | `'leftHeader:string'`
11+
leftFooter | `'leftFooter:string'`
12+
13+
> <widget07 rightHeader='SALE' rightFooter='Today 6:43 AM'
14+
leftHeader='$1.890,65' leftFooter='+432,50 (15,78%)'>
15+
<line-chart1 style="height:40px" chartId="widget07_line1" label='Sales'
16+
:data='[10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]' />
17+
<bar-chart1 style="height:40px" chartId="widget07_bar1" label='Sales'
18+
:data='[10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]'/>
19+
</widget07>

0 commit comments

Comments
 (0)