org.denigma.selectize

Selectize

Related Docs: object Selectize | package selectize

class Selectize extends Object

Annotations
@RawJSType()
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Selectize
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Selectize()

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. var $activaOption: JQuery

  4. var $activeItems: Array[JQuery]

  5. var $control: JQuery

  6. var $control_input: JQuery

  7. var $dropdown: JQuery

  8. var $dropdown_content: JQuery

  9. var $input: JQuery

  10. var $wrapper: JQuery

  11. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def addItem(value: Any): Unit

    "Selects" an item.

    "Selects" an item. Adds it to the list at the current caret position.

  13. def addItems(values: Array[Any]): Unit

    "Selects" multiple items at once.

    "Selects" multiple items at once. Adds them to the list at the current caret position.

  14. def addOption(option: Any): Any

    Adds an available option.

    Adds an available option. If it already exists, nothing will happen. Note: this does not refresh the options list dropdown (use refreshOptions for that).

    Usage:

    this.addOption(data)

  15. def advanceCaret(direction: Int, e: Any): Unit

    Moves the caret left / right.

  16. def advanceSelection(direction: Int, e: Dynamic): Unit

    Selects the previous / next item (depending on the direction argument).

    Selects the previous / next item (depending on the direction argument).

    > 0 - right < 0 - left

  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def canCreate(input: String): Boolean

    Determines whether or not to display the create item prompt, given a user input.

    Determines whether or not to display the create item prompt, given a user input.

    returns

    {boolean}

  19. var caretPos: Int

  20. var classes: String

  21. def clear(): Unit

    Resets / clears all selected items from the control.

  22. def clearCache(templateName: String): Unit

    Clears the render cache for a template.

    Clears the render cache for a template. If no template is given, clears all render caches.

  23. def clearOptions(): Unit

    Clears all options.

  24. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def close: Unit

    Closes the autocomplete dropdown menu.

  26. def createItem(triggerDropdown: Any): Boolean

    Invokes the create method provided in the selectize options that should provide the data for the new item, given the user input.

    Invokes the create method provided in the selectize options that should provide the data for the new item, given the user input.

    Once this completes, it will be added to the item list.

    returns

    {boolean}

  27. def deleteSelection(e: Any): Nothing

    Removes the current selected item(s).

  28. def destroy(): Unit

    Completely destroys the control and unbinds all event listeners so that it can be garbage collected.

  29. def disable(): Unit

    Disables user input on the control completely.

    Disables user input on the control completely. While disabled, it cannot receive focus.

  30. def enable(): Unit

    Enables the control so that it can respond to focus and user input.

  31. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  32. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  33. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  34. def getAdjacentOption(option: JQuery, direction: Int): JQuery

    Returns the jQuery element of the next or previous selectable option.

    Returns the jQuery element of the next or previous selectable option.

    returns

    {object}

  35. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  36. def getElementWithValue(value: Any, els: JQuery): Dynamic

    Finds the first element with a "data-value" attribute that matches the given value.

    Finds the first element with a "data-value" attribute that matches the given value.

    returns

    {object}

  37. def getItem(value: String): JQuery

    Returns the jQuery element of the item matching the given value.

  38. def getOption(value: String): JQuery

    Returns the jQuery element of the option matching the given value.

  39. var hasOptions: Boolean

  40. def hasOwnProperty(v: String): Boolean

    Definition Classes
    Object
  41. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  42. var ignoreBlur: Boolean

  43. var ignoreFocus: Boolean

  44. var ignoreHover: Boolean

  45. var inputMode: Any

  46. def insertAtCaret(arg0: JQuery): Nothing

    A helper method for inserting an element at the current caret position.

  47. var isCmdDown: Boolean

  48. var isCtrlDown: Boolean

  49. var isDisabled: Boolean

  50. var isFocused: Boolean

  51. def isFull(): Boolean

    Determines whether or not more items can be added to the control without exceeding the user-defined maximum.

  52. var isInputHidden: Boolean

  53. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  54. var isInvalid: Boolean

  55. var isLocked: Boolean

  56. var isOpen: Boolean

  57. def isPrototypeOf(v: Object): Boolean

    Definition Classes
    Object
  58. var isSetup: Boolean

  59. var isShiftDown: Boolean

  60. var items: Array[String]

  61. var lastValue: String

  62. def load(fn: Function): Nothing

    Invokes the provided method that provides results to a callback---which are then added as options to the control.

  63. var loading: Double

  64. def lock(): Unit

  65. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  66. final def notify(): Unit

    Definition Classes
    AnyRef
  67. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  68. def open: Unit

    Shows the autocomplete dropdown containing the available options.

  69. var options: Dictionary[Object]

  70. def positionDropdown(): Unit

    Calculates and applies the appropriate position of the dropdown.

  71. def propertyIsEnumerable(v: String): Boolean

    Definition Classes
    Object
  72. def refreshClasses(): Unit

    Updates all state-dependent CSS classes.

  73. def refreshItems(): Unit

    Re-renders the selected item lists.

  74. def refreshOptions(triggerDropDown: Boolean): Nothing

    Refreshes the list of available options shown in the autocomplete dropdown menu.

  75. def refreshState(): Unit

    Updates all state-dependent attributes and CSS classes.

  76. def removeItem(value: String): Unit

    Removes the selected item matching the provided value.

  77. def removeOption(value: String): Unit

    Removes a single option.

  78. def render(templateName: String, data: Any): String

    A helper method for rendering "item" and "option" templates, given the data.

  79. def search(query: String): Dynamic

    Searches through available options and returns a sorted array of matches.

    Searches through available options and returns a sorted array of matches.

    Returns an object containing:

    • query {string}
    • tokens {array}
    • total {int}
    • items {array}
  80. def setCaret(i: Int): Unit

    Moves the caret to the specified index.

  81. def setTextboxValue(value: String): Unit

    Sets the input field of the control to the specified value.

  82. var settings: Dynamic

  83. def setupTemplates(): Nothing

  84. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  85. var tagType: String

  86. def toLocaleString(): String

    Definition Classes
    Object
  87. def toString(): String

    Definition Classes
    AnyRef → Any
  88. def unlock(): Unit

  89. def updateOption(value: String, data: Any): Unit

    Updates an option available for selection.

    Updates an option available for selection. If it is visible in the selected items or options dropdown, it will be re-rendered automatically.

  90. def updateOriginalInput(): Unit

    Refreshes the original element to reflect the current state.

    Refreshes the original element to reflect the current state.

  91. def updatePlaceholder: Unit

    Shows/hide the input placeholder depending on if there items in the list already.

  92. def valueOf(): Any

    Definition Classes
    Object
  93. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  94. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  95. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped