Property definitions

html $ BSLabel :: defaultinit
# A Bootstrap label component.
#
# See http://getbootstrap.com/components/#labels
#
# Example:
#
# ~~~
# var lbl = new BSLabel("danger", "Danger!")
# assert lbl.write_to_string == "<span class=\"label label-danger\">Danger!</span>"
# ~~~
class BSLabel
	super BSComponent
	autoinit(color, text, css_classes)

	# Class used to change the color of the label.
	#
	# Can be one of `default`, `primary`, `success`, `info`, `warning` or `danger`.
	var color: String

	# Text to display in the label.
	var text: Writable

	init do css_classes.add "label label-{color}"

	redef fun rendering do
		add "<span{render_css_classes}>{text.write_to_string}</span>"
	end
end
lib/html/bootstrap.nit:265,1--292,3