Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opendomeco/nativescript-auto-fit-text
{N} Plugin to resize text to fit with
https://github.com/opendomeco/nativescript-auto-fit-text
angular autofittext nativescript nativescript-plugin
Last synced: 2 months ago
JSON representation
{N} Plugin to resize text to fit with
- Host: GitHub
- URL: https://github.com/opendomeco/nativescript-auto-fit-text
- Owner: opendomeco
- License: apache-2.0
- Created: 2017-07-06T16:29:01.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-18T22:21:12.000Z (about 7 years ago)
- Last Synced: 2024-11-02T17:23:53.103Z (2 months ago)
- Topics: angular, autofittext, nativescript, nativescript-plugin
- Language: HTML
- Homepage:
- Size: 3.51 MB
- Stars: 13
- Watchers: 2
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AutoFitText
This plugin is based on the Nativescript Label implementation but with changes to adjust the font size according of the label's width
![Example Image](/assets/showoff.gif?raw=true)
## Prerequisites / Requirements
This plugin is only tested with **{N} > 3.0.0**
## Installation
Describe your plugin installation steps. Ideally it would be something like:
```javascript
tns plugin add nativescript-auto-fit-text
```## Usage
### Angular
```typescript
import { AutoFitTextModule } from "nativescript-auto-fit-text/angular"@NgModule({
...
imports: [
AutoFitTextModule
],
...
})
export class AppModule { }```
```html
```
### Vanilla Nativescript
```html
```
## Credits
[@grantland - android-autofittextview](https://github.com/grantland/android-autofittextview)
## LicenseApache License Version 2.0, January 2004