Code Monkey home page Code Monkey logo

fui-angular's Introduction

fui-angular

AngularJS directives for Flat UI components. Pure Angular directives with no jQuery calls.

Description

This is a simple collection of angular directives to work in conjunction with Flat UI or Flat UI Pro.

Installation

Installation is easy as fui-angular has minimal dependencies - only the AngularJS, Flat UI and Bootstrap's CSS are required.

1.-

bower install --save fui-angular

2.-

Add a copy of views/directive_templates to your path. This lets you to adapt and tweak templates to your needs.

Example:

app
|-- index.html
|-- scripts
|   |-- app.js
`-- views
    |-- directive_templates
    |   |-- fui-checkbox.html
    |   |-- fui-radio.html
    |   `-- fui-switch.html
    |-- home.html
    |...

Project philosophy

Native, lightweight directives

We are aiming at providing a set of AngularJS directives based on Flat UI and Bootstrap's markup and CSS. The goal is to provide native AngularJS directives without any dependency on jQuery or Bootstrap's JavaScript.

Take what you need and not more

Each directive has its own AngularJS module without any dependencies on other modules or third-party JavaScript code. In practice it means that you can just grab the code for the directives you need and you are not obliged to drag the whole repository.

Usage

Inside directives dir you can find fui.js This is a module wrapper:

angular.module('fui',['fui.checkbox','fui.switch','fui.radio']);

Inject the fui.* directives yoou need to module 'fui', then inject 'fui' module component to your app like:

angular.module('app', ['fui']);

Remember you also need the bootstrap.css, flat-ui.css/flat-ui-pro.css and glyphicons

Components

fui-checkbox

wrap for flat ui checkboxes:

<fui-checkbox ng-model="modelCheckbox2" id="Checkbox2">
    modelCheckbox2={{modelCheckbox2}}
</fui-checkbox>

<fui-checkbox ng-model="modelCheckbox1" ng-disabled="false" id="Checkbox1">
    modelCheckbox1={{modelCheckbox1}}
</fui-checkbox>

fui-radio

wrap for flat ui radiobuttons:

<fui-radio ng-value="0" name="group1" id="r0" ng-model="grp1" ng-init="grp1=0">
    Radio 0
</fui-radio>
<fui-radio ng-value="1" name="group1" id="r1" ng-model="grp1">
    Radio 1
</fui-radio>
<fui-radio ng-value="2" name="group1" id="r2" ng-model="grp1">
    Radio 2
</fui-radio>
<fui-radio ng-value="3" name="group1" id="r3" ng-model="grp1">
    Radio 3
</fui-radio>
<fui-radio ng-value="4" name="group1" id="r4" ng-model="grp1" ng-disabled="true">
    Radio disabled
</fui-radio>

fui-switch

wrap flat ui switches:

<fui-switch ng-model="modelSwitch1" ng-init="modelSwitch1 = true"></fui-switch>
<fui-switch ng-model="modelSwitch1" data-on-color="success" data-on-text="Hi" data-off-text="By"></fui-switch>

Demo

Demo dir contains a sample index.html

demo screen shoot

fui-angular's People

Contributors

sitamet avatar

Watchers

James Cloos avatar Vrigz Alejo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.