uix-kit
Version:
A free web kits for fast web design and development, compatible with Bootstrap v5.
26 lines (18 loc) • 494 B
JavaScript
/*
* Disabled Controls
*
* @param {String} controls - Wrapper of controls.
* @return {Void}
*/
( function ( $ ) {
'use strict';
$.fn.UixRenderControlsDisable = function( options ) {
// This is the easiest way to have default options.
const settings = $.extend({
controls : 'input.is-disabled'
}, options );
this.each( function() {
$( settings.controls ).prop( 'disabled', true );
});
};
}( jQuery ));