angular-schema-form-multiselect

WebJar for angular-schema-form-multiselect

Лицензия

Лицензия

MIT
Категории

Категории

Angular Взаимодействие с пользователем Веб-фреймворки ORM Данные
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

angular-schema-form-multiselect
Последняя версия

Последняя версия

0.1.3
Дата

Дата

Тип

Тип

jar
Описание

Описание

angular-schema-form-multiselect
WebJar for angular-schema-form-multiselect
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

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

Скачать angular-schema-form-multiselect

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.bower : angular-schema-form jar [0.7,)

Модули Проекта

Данный проект не имеет модулей.

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!

Версии библиотеки

Версия
0.1.3