Skip to content

skykevin674/nine-patch

Repository files navigation

ngNinePatch

An angular control of Nine Patch

Getting Started

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>

Options

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

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published