New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

inplace

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inplace

Inplace - A Wizard Plugin

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
decreased by-5.26%
Maintainers
2
Weekly downloads
 
Created
Source

Inplace - An inplace editor

Build Status NPM Version Dependency Dev Dependency Code Climate Support

Inplace is an tiny inplace editor to enable a quick ajax update with no need to create a form.

Options

buttonOrder:   // the cancel and save order button on screen
cancel:        // enables cancel button creation
cancelClass:   // the cancel button class
cancelValue:   // the cancel button label
checkable:     // html elements that will listen check change
fieldClass:    // the field class
fieldName:     // the field name
fieldTemplate: // template used to build custom names format
fieldType:     // the field type
method:        // method used on ajax request
save:          // enables save button creation
saveClass:     // the save button class
saveValue:     // the save button label
selectable:    // html elements that will listen select change
typeful:       // html elements that will listen enter change

Usage

You declare an element with optional data atributes:

<div
  class="inplace"
  data-attributes='{ "maxlength": 2 }'
  data-field-name="number"
  data-field-value="42"
  data-url="/update"
>42</div>

On JS you can declare attributes too, but data attributes has priority:

$('.inplace').inplace({ url: 'save' });

Functions

Contributors

Check it out

Keywords

FAQs

Package last updated on 09 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc