{% comment "rst" %} Chips ===== In a few other frameworks, like Material, chips represent an actionable label or tag. SemanticUI has labels, which is the underlying element to this, but to distinguish the two, I'll refer to these as "chips". Chips represent linkable items, like projects, builds, or versions, and they use a graphic element along with a label to allow the chip to stand out a bit more than a text label would. So far, chips will all trigger their own popup on hover, allowing more details in a popup card view. This is a base template, and each individual chip type will need to specify it's own popup contents, etc. The following blocks are available for override: {% endcomment %} {# This is probably used inside another KO `with` binding, so we need to reference the root ApplicationView #}
{% comment "rst" %} .. describe:: chip_icon The icon or image to the left of the label. See FomanticUI label docs for each implementation. {% endcomment %} {% block chip_icon %} {% endblock chip_icon %} {% comment "rst" %} .. describe:: chip_text The main text of the chip {% endcomment %} {% block chip_text %} {% endblock chip_text %} {% comment "rst" %} .. describe:: chip_detail The wrapper for the label detail text. If empty, this block will not output the right label detail text. {% endcomment %} {% block chip_detail %}
{% comment "rst" %} .. describe:: chip_detail_text The text to the right of the label, if any. Set ``chip_detail`` to an empty block to remove this portion of the label. {% endcomment %} {% block chip_detail_text %} {% endblock chip_detail_text %}
{% endblock chip_detail %}