1.1.0 • Published 4 years ago

@askalione/jquery.datasubset v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

jQuery.dataSubset

jQuery.dataSubset is a simple jQuery plugin for getting data subset.

Usage

For example you have html:

<div class="data-subset-example" data-id="1" data-name="Example" data-ajax-url ="https://url.example.com" data-ajax-cache="true"></div>

To get only ajax data u should use:

var ajax = $('.data-subset-example').dataSubset('ajax'); // return { url: "https://url.example.com", cache: true }

Params

NameTypeDefaultDescription
prefixstringData prefix
removePrefixbooleantrueParam that indicates to remove specified prefix from result data

License

Optimizer is open source, licensed under the MIT License.