Skip to content
Branch: master
Find file History

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
component.css
component.js
component.json
dependencies.html
example.html
picture.jpg
readme.md

readme.md

j-FloatingInput

  • singleton
  • supports dark mode

Methods:

Method: component.show(options)

  • options.element {Element/jQuery Element}
  • options.offsetX {Number} optional, x offset (default: 0)
  • options.offsetY {Number} optional, y offset (default: 0)
  • options.offsetWidth {Number} optional, width offset (default: 0)
  • options.placeholder {String} optional, a placeholder for search field
  • options.minwidth {Number} optional, a minimal width, default 200
  • options.maxwidth {Number} optional, a maximal width, default infinite
  • options.maxlength {Number} optional, a maximal length of value, default 50
  • options.callback(value, element) {Function} is triggered when the user clicks on the item
  • options.icon {String} optional, Font-Awesome icon
  • options.close {Function} optional, can determine closing of panel
  • options.align {String} optional, left (default), right or center
  • options.position {String} optional, top (default), bottom

Method: component.hide()

Configuration:

  • placeholder - a placeholder for the input

Author

You can’t perform that action at this time.