0.0.2 • Published 7 years ago

ng2-semantify v0.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

Work in progress

Directives and other useful angular2 stuff for Semantic UI.

Yes, another wrapper. Yes, there are dozens of:

lparrot/semantic-ng2

vladotesanovic/ngSemantic

allenRoyston/ng2-semantic-ui-directives

semanticng2

... well, infinite list. You can easily google more.

Why another one?

Usage

import { SemanticUiModule } from 'ng2_semantify/module'; or import only necessary components directly

Directives

Modal

import { SemanticModalTriggerDirective } from 'ng2_semantify/directives/modal_trigger';

Then, in template:

<button
	class="this-element-will-trigger-modal"
	semantic-modal-trigger
	[options]="modalOptions"
>
	Show modal
</button>

modalOptions will be passed to $.fn.modal() directly.