0.6.2 • Published 9 years ago
ng-semantic-ui v0.6.2
#ng-semantic-ui
Directive(s) for Semantic-UI library.
Easy to use:
<script type="text/javascript" src="./mylibs/ng-semantic-ui/dist/ng-semantic-ui.min.js"></script>
then: angular.module('myApp', ['ng-semantic-ui'])
######OR
npm install ng-semantic-ui
then: angular.module('myApp', [require('ng-semantic-ui')])
##Available directives
####Dropdown
<div ui-dropdown></div>
#####Attributes:
modelthe model of this element (ng-model)itemsarray of items, simple string or object with display text and value:{ text: 'My text', value: '1' }classthe element class. (ui dropdown selectionis already there)placeholderthe element placeholder, default: "Select..."allow-additions"true" or "false". Automatically addsearchclass.changethe function to call when onChange is fired. Accept value and text:function (value, text) {}.
####Input
<div ui-input></div>
#####Attributes:
modelthe model of this element (ng-model)classthe element class. (ui inputis already there)placeholderthe element placeholder, default: "Select..."labelthe label to add to the inputlabel-positionthe label position (left or right, default left)iconthe icon to add to the inputicon-positionthe icon position (left or right, default right)
More to come...