Home - NazimMertBilgi/nmb-empty-control GitHub Wiki
You must optionally add the css file and the mandatory JavaScript file to the page you want to use.
<link rel="stylesheet" type="text/css" href="empty.control.css">
<script src="empty.control.js"></script>
You can define plug-in settings.
emptycontrol.settings({
languageCode: "en", // default languageCode
selector: defaultSelector, // default selector integrated.
dependentButton: "#finish" // default dependentButton
});
If you do not add this code, the plug-in will not start.
emptycontrol.fire();
To include an input or textarea in the plugin, it is mandatory to write an attribute.
required-ec=""
If you use it as follows, you will see the warnings appear. If you use it as above, everything will be executed the same but the warnings will not appear.
To show alerts
required-ec="warning"
After typing any of the two above, other attributes will become operational.