angular-schema-form-multiselect

WebJar for angular-schema-form-multiselect

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks ORM Data
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-schema-form-multiselect
Last Version

Last Version

0.1.3
Release Date

Release Date

Type

Type

jar
Description

Description

angular-schema-form-multiselect
WebJar for angular-schema-form-multiselect
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/jbsaff/angular-schema-form-multiselect

Download angular-schema-form-multiselect

How to add to project

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

Dependencies

compile (1)

Group / Artifact Type Version
org.webjars.bower : angular-schema-form jar [0.7,)

Project Modules

There are no modules declared in this project.

angular-schema-form-multiselect

bootstrap-multiselect extension for angular-schema-form

==== Provides a decorator for the bootstrap-multiselect (https://github.com/davidstutz/bootstrap-multiselect) library. The multiselect is initialized with a default set of options (see angular-multiselect.json). Each form field can be given a specific json configuration (see http://davidstutz.github.io/bootstrap-multiselect/#configuration-options for more), which extend/override the defaults.

There is also a decorator and form element type called "selectWithDefault" for a single select with a default placeholder. This decorator will take the value associated with a selectDefault key in the form definition and display it as the first, unselectable, empty value option in the list.

Finally, there is a directive extension to schema-validate to clean up the model when elements are $destroyed (such as when an ng-if condition is no longer satisfied).

destroyStrategy

By default, when a field is removed from the DOM and the $destroy event is broadcast, the schema-validate directive will update the model to set the field value to undefined. This can be overridden by setting the destroyStrategy on a field to one of null, empty string (""), undefined, or "retain". Any other value will be ignored and the default behavior will apply. The empty string option only applies to fields that have a type of string; using the empty string with other field types will just be set to the default destroyStrategy. If you'd like to set the destroyStrategy for an entire form, add it to the formDefaults in the globalOptions

#Roadmap

  • externalized default options for bootstrap-multiselect.
  • allow for configuration of the model cleanup, to allow specific behavior to be on a per question basis. DONE!

Versions

Version
0.1.3