Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/moayadnajd/nativescript-reviews
Your awesome NativeScript plugin for render a reviews box
https://github.com/moayadnajd/nativescript-reviews
Last synced: 10 days ago
JSON representation
Your awesome NativeScript plugin for render a reviews box
- Host: GitHub
- URL: https://github.com/moayadnajd/nativescript-reviews
- Owner: moayadnajd
- License: apache-2.0
- Created: 2017-08-22T09:18:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T09:48:21.000Z (about 7 years ago)
- Last Synced: 2024-12-08T14:04:19.459Z (30 days ago)
- Language: TypeScript
- Size: 1.99 MB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nativescript Reviews
### ready to use reviews box
## Install
```
tns plugin add nativescript-reviews
```
[click here to Download fontawesome-webfont.ttf](https://github.com/moayadnajd/nativescript-fontawesome/blob/master/fonts/fontawesome-webfont.ttf) or download from [fontawesome website](http://fontawesome.io/)* Place font icon `.ttf` file in `app/fonts`, like below:
```
app/fonts/fontawesome-webfont.ttf
```### Usage
``````
#### with more options
```
```
## refresh() this function you can triger after you get remote datalet review = getViewById('review');
//you can do remote request or delay
review.refresh(); // then refresh your values## see [demo](https://github.com/moayadnajd/nativescript-reviews/tree/master/demo) for more details
| Property | Default | Description |
| --- | --- | --- |
| reviews | required | Array of reivew object {image: "~/images/icon-50.png", username: "Moayad Najdawi", review: "this is the first review", rate: 5, datetime: new Date(Date.now() - 24 * 60 * 60 * 1000)}|
| scroll | true | enable or disable scrollview inside the reviews holder |
| showHeader | true | to hide or show review title with the underline style |
| imagetag | | the xml element of the image so you can change it if you need to add cache plugin or something |
| plugin | empty string | plugin include statment like xmlns:IC="nativescript-web-image-cache" |
| title | reviews | the title of the reviews box |
| dateHandler | a go | you can change the date text by provide filter inside app resources see app.ts |
| user | event | fire on tap on user image or name return the review object |