Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

vazco/meteor-universe-selectize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vazco/Universe Selectize

 

 

This package is part of Universe, a framework based on Meteor platform maintained by Vazco.

It works standalone, but you can get max out of it when using the whole system.

Demo

http://universe-autoform-select.stg.vazco.eu/

https://github.com/vazco/meteor-universe-selectize-demo.git

Installation

In a Meteor app directory, enter:

$ meteor add vazco:universe-selectize

Usage

{{> universeSelectize name="test1" options=options multiple=false create=true}}

{{> universeSelectize name="test2" options=options multiple=true create=true remove=true}}

Options

universe-selectize options
Option Description Type Default
options Required. A function returning either an array of options, or a Mongo.Cursor. The function is re-evaluated automatically using Tracker when its reactive data sources change. function undefined
placeholder Optional. A placeholder option. String null
optionsPlaceholder Optional. Show placeholder in options dropdown. Boolean or String false
disabled Optional. Boolean false
multiple Optional. Boolean false
removeButton Optional. Boolean true
create Optional. Allows the user to create a new items that aren't in the list of options. Boolean true
createText Optional. Allows the user to change the create text. String undefined
createMethod Optional. Name of method to call after create new item. Method can return new value for item. String undefined
optionsMethod Optional. Name of method to get more items. Method should return array of options. String undefined
optionsMethodParams Optional. Additional params for optionsMethod. Object undefined
sortMethod Optional. Function 'label'

License

Like every package maintained by Vazco, Universe Selectize is MIT licensed.

About

Meteor universe selectize standalone

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published