
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
jquery-pluginconfig
Advanced tools
A jQuery plugin that help use data attributes for configuration
You can install with npm
$ npm install jquery-pluginconfig
With Bower
bower install jquery-pluginconfig
Or use some of the files at dist
folder.
Let's say you have a jQuery plugin called my-awesome-plugin
. And you want to allow the user to set the configs of that plugin for a given element using data-*
attributes.
You can let them do this:
<div class="my-element" data-my-awesome-plugin-config="hello" data-my-awesome-plugin-config-two="world"></div>div>
And then you can do this:
var config = $('.my-element').pluginConfig('my-awesome-plugin');
// You'll get { config: "hello", configTwo: "world"}
// Then use it
$('.my-element').myAwesomePlugin(config);
You can also use it internally of your plugin, so the user won't have to call pluginConfig
every time.
That's all, folks!
FAQs
A jQuery plugin that help use data attributes for configuration
The npm package jquery-pluginconfig receives a total of 3 weekly downloads. As such, jquery-pluginconfig popularity was classified as not popular.
We found that jquery-pluginconfig demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.