Web component: j-InlineForm


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-Form

Configuration:

Example: data-jc-config="title:Form title;width:200;icon:home"

  • title {String} form title
  • width {Number} form max-width
  • icon {String} Font-Awesome icon without fa-
  • reload {String} link to a global function and it's executed if the form is showing
  • submit {String} link to a global function and it's executed if the submit button is pressed
  • cancel {String} link to a global function and it's executed if the cancel button is pressed
  • enter {Boolean} (optional) captures enter key automatically and performs submit (default: false)
  • default {String} (optional) a short alias for DEFAULT(default, true)

Methods:

  • instance.show(el, position, [offsetX], [offsetY]) - shows the form, positions: left (default, center or right
  • instance.hide() - hides the form
  • instance.toggle(el, position, [offsetX], [offsetY]) - toggles the form

Author

Browser‘s Save action performs Preview