An angular control of Nine Patch
Add needed package to NgModule imports:
import { NgNinePatchModule } from 'ng-nine-patch';
@NgModule({
...
imports: [NgNinePatchModule,...]
...
})
Add component to your page:
<div libNinePatch src="assets/border.9.png"></div>
ninePatch
directive support following input porperties:
Input | Type | Default | Description |
---|---|---|---|
[src] |
string | null | .9 image path |
[repeatMode] |
string | scale | the image repeat mode, use 'scale' or repeat |
MIT