File tree Expand file tree Collapse file tree 3 files changed +55
-5
lines changed
doc/src/components/common/componentData Expand file tree Collapse file tree 3 files changed +55
-5
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export const componentData = {
45
45
{
46
46
prop : 'navigationButtons' ,
47
47
type : 'boolean' ,
48
- defaultValue : 'false ' ,
48
+ defaultValue : 'true ' ,
49
49
description : 'Shows navigation buttons when `true`.' ,
50
50
} ,
51
51
] ,
@@ -83,16 +83,50 @@ export const componentData = {
83
83
<Pagination total={10}/>
84
84
` ,
85
85
componentUsage : `
86
- class Demo extends React.Component {
86
+ // Component.js
87
+
88
+ class Demo extends React.Component {
87
89
render() {
88
90
return (
89
- <div >
91
+ <PreviewElements >
90
92
<PreviewBlock header="Pagination">
91
- <Pagination total={10}/>
93
+ <PreviewElements>
94
+
95
+ {/* Default Pagination Component */}
96
+ <Pagination total={10}/>
97
+
98
+ </PreviewElements>
92
99
</PreviewBlock>
93
- </div>
100
+ <PreviewBlock header="Custom Pagination">
101
+ <PreviewElements>
102
+
103
+ {/* Custom themed Pagination Component, Refer theme.scss below */}
104
+ <Pagination total={6} theme={componentTheme} navigationButtons={false}/>
105
+
106
+ </PreviewElements>
107
+ </PreviewBlock>
108
+ </PreviewElements>
94
109
)
95
110
}
96
111
}
97
112
` ,
113
+ componentUsageTheme : `
114
+ // theme.scss
115
+
116
+ :local(.pagination-steps) {
117
+ border-color: transparent;
118
+ color: #8047c7;
119
+ }
120
+
121
+ :local(.active) {
122
+ color: #ff8600;
123
+ }
124
+
125
+ :local(.dots) {
126
+ span {
127
+ height: 0.3em;
128
+ width: 0.3em;
129
+ }
130
+ }
131
+ ` ,
98
132
} ;
Original file line number Diff line number Diff line change
1
+ :local(.pagination-steps ) {
2
+ border-color : transparent ;
3
+ color : #8047c7 ;
4
+ }
5
+
6
+ :local(.active ) {
7
+ color : #ff8600 ;
8
+ }
9
+
10
+ :local(.dots ) {
11
+ span {
12
+ height : 0.3em ;
13
+ width : 0.3em ;
14
+ }
15
+ }
Original file line number Diff line number Diff line change 8
8
@import ' ./Modal/theme.scss' ;
9
9
@import ' ./MultiSelect/theme.scss' ;
10
10
@import ' ./Navbar/theme.scss' ;
11
+ @import ' ./Pagination/theme.scss' ;
11
12
@import ' ./Select/theme.scss' ;
12
13
@import ' ./Slider/theme.scss' ;
13
14
@import ' ./TextInput/theme.scss' ;
You can’t perform that action at this time.
0 commit comments