Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
YasinDehfuli committed Aug 17, 2023
1 parent 2d09496 commit 1db2902
Showing 1 changed file with 17 additions and 4 deletions.
21 changes: 17 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ Materialize Persian Date and time picker by A1Gard 4xmen.ir

## screenshot

<div align="center">

![mp datetime picker](screenshot.png)

</div>

## How to use

Add jquery:
Expand All @@ -22,21 +26,30 @@ Add jquery:
<script type="text/javascript" src="../dist/jquery.min.js"></script>
```

Add additional font for best view or use [vazir-code-font](https://www.npmjs.com/package/vazir-code-font):
Add additional font for best view or use [Vazir-Matn-Font](https://www.npmjs.com/package/vazirmatn):

```html

<link type="text/css" rel="stylesheet" href="http://4xmen.ir/cdn/VazirCodeX.css"/>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/Vazirmatn-font-face.css"/>
```

Add css and jquery plugin:
Add css and jquery plugin To end of your project:

```html

<script type="text/javascript" src="node_modules/mpdatepicker/dist/jquery.mpdatepicker.min.js"></script>
<link type="text/css" rel="stylesheet" href="node_modules/mpdatepicker/dist/jquery.mpdatepicker.min.css"/>
```


Add Html :

```Html
<input class="sample-date-picker bg-white w-100 p-3"
placeholder="تاریخ" type="text" id="date">
```


use plugin :

```javascript
Expand All @@ -57,7 +70,7 @@ $(function () {
},
});
});
```
```

## Options & events

Expand Down

0 comments on commit 1db2902

Please sign in to comment.