How does the data-toggle attribute work? (What’s its API?)
I think you are a bit confused on the purpose of custom data attributes. From the w3 spec Custom data attributes are intended to store custom data private to the page or application, for which there are no more appropriate attributes or elements. By itself an attribute of data-toggle=value is basically a key-value pair, in which the key … Read more