@@ -19,9 +19,11 @@ this component is a simple react component that use [jb-date-input](https://gith
19
19
20
20
- good typing experience for desktop user
21
21
22
- - it use your page font by default.
22
+ - it use your page font by default.
23
23
24
- - have 3 value type so you can get inputed value in gregorian, jalali or timestamp base on your project need
24
+ - customizable month names so you can change it for afghan or any other locals
25
+
26
+ - have 3 value type so you can get inputted value in gregorian, jalali or timestamp base on your project need
25
27
26
28
- customizable value format so you can get your value in standard iso format or custom format like ` 1400/12/08 ` or ` 1400_12_08 `
27
29
@@ -214,6 +216,16 @@ you can change calendar icon base on your own need to doing so you just have to
214
216
< / div>
215
217
< / JBDateInput>
216
218
```
219
+ ## Change Month List
220
+
221
+ you may want to change the default month list for both of Jalali and Gregorian calendars base on your country month labels. here how you can do it:
222
+
223
+ ``` jsx
224
+ document .querySelector (' jb-date-input' ).setMonthList (' GREGORIAN' ,[' 1' ,' 2' ,' 3' ,' 4' ,' 5' ,' 6' ,' 7' ,' 8' ,' 9' ,' 10' ,' 11' ,' 12' ]);
225
+ < JBDateInput jalaliMonthList= {[' حَمَل' ,' ثَور' ,' جَوزا' ,' سَرَطان' ,' اَسَد' ,' سُنبُله' ,' میزان' ,' عَقرَب' ,' قَوس' ,' جَدْی' ,' دَلو' ,' حوت' ]}>< / JBDateInput>
226
+ < JBDateInput gregorianMonthList= {[' 1' ,' 2' ,' 3' ,' 4' ,' 5' ,' 6' ,' 7' ,' 8' ,' 9' ,' 10' ,' 11' ,' 12' ]}>< / JBDateInput>
227
+ ```
228
+
217
229
### set custom style
218
230
219
231
in some cases in your project you need to change defualt style of react-component for example you need zero margin or different border-radius and etc.
0 commit comments