https://github.com/nativescript/nativescript-ui-plugin-custom
This repo guides through the process of creating UI plugin using Custom Component
https://github.com/nativescript/nativescript-ui-plugin-custom
Last synced: 8 months ago
JSON representation
This repo guides through the process of creating UI plugin using Custom Component
- Host: GitHub
- URL: https://github.com/nativescript/nativescript-ui-plugin-custom
- Owner: NativeScript
- License: apache-2.0
- Created: 2017-06-30T16:04:34.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-07T10:55:37.000Z (over 7 years ago)
- Last Synced: 2024-10-29T15:51:55.579Z (over 1 year ago)
- Language: TypeScript
- Size: 1.89 MB
- Stars: 5
- Watchers: 5
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UI Plugin example (Custom button component)
This plugin shows how you can build UI plugin using a Custom Component. A simple Button is given as example.
## Installation
To install the plugin:
```javascript
tns plugin add nativescript-ui-plugin-custom
```
## Usage
You need to add `xmlns:ui="nativescript-ui-plugin-custom"` to your page tag, and then simply use `` in order to add the widget to your page.
## API
Describe your plugin methods and properties here. See [nativescript-feedback](https://github.com/EddyVerbruggen/nativescript-feedback) for example.
| Property | Default | Description |
| --- | --- | --- |
| text | "" | used to set the text of the button |
| tap | "" | sets the callback that is called when the button is tapped |
## License
Apache License Version 2.0, January 2004