0.9.1 • Published 5 years ago

ngx-balance-text v0.9.1

Weekly downloads
9
License
Apache 2.0
Repository
github
Last release
5 years ago

NgxBalanceText

A simple Angular directive to integrate the BalanceText alternative text wrapping algorithm.

https://github.com/adobe-webplatform/balance-text

Example

A simple example can be found under src/app directory of this repository.

Installation

npm i ngx-balance-text

Usage

  1. Register the NgxBalanceText directive in your app module.

    import { NgxBalanceTextModule } from 'ngx-balance-text'

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';
import { NgxBalanceTextModule } from 'ngx-balance-text';

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, NgxBalanceTextModule],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}
  1. Use the directive in the required HTML elements.
<p ngxBalanceText>
  This is some text that will be split evenly between lines.
</p>
0.9.1

5 years ago

0.9.0

5 years ago

0.8.2

5 years ago

0.8.1

5 years ago

0.8.0

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago