This repository was archived by the owner on Jul 10, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Expand file tree Collapse file tree 4 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ color : string ---> color for the navigation buttons -- default is black
9999fontSize: string ---> font size of the navigation buttons -- default is 20px
100100<br >
101101top: string ---> the position of the navigation buttons from top of the container
102+ <br >
103+ noNavButtons: boolean ---> display or don't display Navigation Buttons -- default is false(display)
102104
103105<br >
104106<br >
Original file line number Diff line number Diff line change 11{
22 "name" : " saffroncodejs" ,
3- "version" : " 1.9.5 " ,
3+ "version" : " 1.9.7 " ,
44 "description" : " Package of optimised react components and javascript functions for developers ♫♪" ,
55 "main" : " ./lib/SaffronCode.js" ,
66 "types" : " ./lib/SaffronCode.d.ts" ,
Original file line number Diff line number Diff line change 22 overflow-x : scroll;
33 overflow-y : hidden;
44 padding : 10px 0 15px 0 ;
5- margin : 0 20px 0 40 px ;
5+ margin : 0 20px 0 20 px ;
66 display : flex;
77 -ms-overflow-style : none;
88 scrollbar-width : none;
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ interface ItemSliderProps {
1212 rtl : boolean ,
1313 top : string ,
1414 fontSize : string ,
15- color : string
15+ color : string ,
16+ noNavButtons : boolean
1617}
1718
1819export default class ItemsSlider extends Component < ItemSliderProps > {
@@ -152,10 +153,10 @@ export default class ItemsSlider extends Component<ItemSliderProps> {
152153 const navButtonsStyle :object = {
153154 position : "absolute" ,
154155 width : "100%" ,
155- display : "flex" ,
156+ display : ( ! this . props . noNavButtons ) ? "flex" : "none ",
156157 justifyContent : "space-between" ,
157158 ...top ,
158- left : "0"
159+ left : "0" ,
159160 }
160161
161162 const fontSize = ( this . props . fontSize ) ? this . props . fontSize : '20px' ;
You can’t perform that action at this time.
0 commit comments