Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)

## License

Apache License Version 2.0, January 2004