Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this mean: data-component-bound="true"?

Tags:

html

css

What does data-component-bound="true" mean?

I've found this within a collapsed element but adjusting the value doesn't do anything. I've tried looking for the attribute "data-component-bound" on Stack Overflow and on Google but it points to a limited set of various jquery articles which are over my head and which take it for granted.

[edit post some answers]

Ahh, I see now that i should have been searching for "data-" to solve this. In so doing, I found this useful article which could help the next person: http://www.sitepoint.com/use-html5-data-attributes/

like image 229
Afflatus Avatar asked Jan 10 '23 07:01

Afflatus


1 Answers

data- attributes are extensible: the author of the code can make up any data attribute they like. In this case, from a quick look, it seems it is used for the internal workings of websites to know when the 'component' (i.e. DOM element) is 'bound' to something - an event, an interaction, etc.

In general, data- attributes are used for that: data. They store any data, so are often used to substitute non-standard attributes that would otherwise flag up in a validator.

like image 181
ArtOfCode Avatar answered Jan 20 '23 06:01

ArtOfCode