<acidjs-xflag code="bg"></acidjs-xflag>
<acidjs-xflag code="cz" size="small"></acidjs-xflag>
<acidjs-xflag code="de" size="medium"></acidjs-xflag>
<acidjs-xflag code="mt" size="large"></acidjs-xflag>
[/sourcecode]
HTML Attributes of the <acidjs-xflag></acidjs-xflag>
Tag
Any native HTML attribute (id
, class
, data-*
, style
, etc.) is supported, plus the component-specific:
code
– Required valid country code, for example "bg"
.size
– Optional size of the flag, a choice between "small"
, "medium"
and "large"
. Default: "medium"
.JavaScript Methods of the <acidjs-xflag></acidjs-xflag>
Tag
Any native JavaScript method (document.getElementById
, document.querySelector
, element.setAttribute
, element.removeAttribute
etc.
Check the demo on this page. On it you will also find a download link. If you share the same interest towards HTML5 Web Components as I do these days, make sure you read my relevant blog posts and further endeavors on my HTML5, CSS3 and JavaScript Experiments and Insight website.
© 2006 - 2023 Martin Ivanov