angular-bs-edit

WebJar for angular-bs-edit

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-bs-edit
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

angular-bs-edit
WebJar for angular-bs-edit
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/flexjoy/angular-bs-edit

Download angular-bs-edit

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-bs-edit/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-bs-edit</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-bs-edit/
implementation 'org.webjars.bower:angular-bs-edit:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-bs-edit/
implementation ("org.webjars.bower:angular-bs-edit:1.0.1")
'org.webjars.bower:angular-bs-edit:jar:1.0.1'
<dependency org="org.webjars.bower" name="angular-bs-edit" rev="1.0.1">
  <artifact name="angular-bs-edit" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-bs-edit', version='1.0.1')
)
libraryDependencies += "org.webjars.bower" % "angular-bs-edit" % "1.0.1"
[org.webjars.bower/angular-bs-edit "1.0.1"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.bower : bootstrap jar [3.0.0,4)
org.webjars.bower : angular jar [1.0.0,2)
org.webjars.bower : bootstrap-datepicker jar [1.6.1,2)

Project Modules

There are no modules declared in this project.

angular-bs-edit

Angular-bs-edit is a set of AngularJS directives for inline editing in the Bootstrap style.

The directives are:

Requirements

Quick start

Several quick start options are available:

  • Download the latest release
  • Clone the repo: git clone https://github.com/flexjoy/angular-bs-edit.git.
  • Install with Bower: bower install angular-bs-edit.
  • Use Bower WebJars dependency.

What's included

angular-bs-edit/
  dist/
    ├─css/
  	│  ├─angular-bs-edit.css
  	│  └─angular-bs-edit.min.css
    └─js/
       ├─angular-bs-edit.js
       └─angular-bs-edit.min.js

Usage

Load CSS and JS
<link href="dist/css/angular-bs-edit.min.css" rel="stylesheet">
...
<script src="dist/js/angular-bs-edit.min.js"></script>
Add "angular-bs-edit" to dependencies
angular.module('MyApp', ['bs-edit']);

Documentation

bseText

Basic directive
<div bse-text="model"></div>
API
Attribute Type Required Default Description
bse-text model yes Angular model
name string no Form field name
empty string no empty Displayed value for empty field

bseSelect

Basic directive
<div bse-select="model" onshow="getList()"></div>
API
Attribute Type Required Default Description
bse-select model yes Angular model. As object must have two required fields: id and name
onshow function yes Function returns an array. Must return a $promise
name string no Form field name
empty string no empty Displayed value for empty field

bseTextarea

Basic directive
<div bse-textarea="model"></div>
API
Attribute Type Required Default Description
bse-textarea model yes Angular model
name string no Form field name
empty string no empty Displayed value for empty field

bseDate

Basic directive
<div bse-date="model"></div>
API
Attribute Type Required Default Description
bse-date model yes Angular model. Initial value can be timestamp or javascript date. Return date in javascript date format
locale model no en Angular model contains language in accordance with the bootstrap-datepicker language
name string no Form field name
empty string no empty Displayed value for empty field

bseCheckbox

Basic directive
<div bse-checkbox="model"></div>
API
Attribute Type Required Default Description
bse-checkbox model yes Angular model
name string no Form field name

Versions

Version
1.0.1
1.0.0
0.0.4
0.0.3
0.0.2
0.0.1