MCPcopy Index your code
hub / github.com/json-editor/json-editor / setupCleave

Method setupCleave

src/editors/string.js:254–260  ·  view source on GitHub ↗
(el)

Source from the content-addressed store, hash-verified

252 }
253
254 setupCleave (el) {
255 /* Enable cleave.js support if library is loaded and config is available */
256 const options = this.expandCallbacks('cleave', extend({}, this.defaults.options.cleave || {}, this.options.cleave || {}))
257 if (typeof options === 'object' && Object.keys(options).length > 0) {
258 this.cleave_instance = new window.Cleave(el, options)
259 }
260 }
261
262 setupImask (el) {
263 /* Enable imask.js support if library is loaded and config is available */

Callers 1

afterInputReadyMethod · 0.95

Calls 2

extendFunction · 0.90
expandCallbacksMethod · 0.80

Tested by

no test coverage detected