<ul>
list tag.Example:
var lst = new UnorderedList
lst.add_li(new ListItem("foo"))
lst.add_li(new ListItem("bar"))
lst.add_li(new ListItem("baz"))
assert lst.write_to_string == """
<ul>
<li>foo</li>
<li>bar</li>
<li>baz</li>
</ul>
"""
html :: UnorderedList :: defaultinit
html $ UnorderedList :: SELF
Type of this instance, automatically specialized in every classhtml $ UnorderedList :: rendering
Service used to render the content of the template.core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
html :: BSComponent :: css_classes
CSS classes to add on this element.html :: BSComponent :: css_classes=
CSS classes to add on this element.html :: BSComponent :: defaultinit
html :: HTMLList :: defaultinit
html :: UnorderedList :: defaultinit
core :: Object :: defaultinit
core :: Writable :: defaultinit
template :: Template :: defaultinit
template :: Template :: is_frozen=
Is the template allowing more modification (add
)
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: output_class_name
Display class name on stdout (debug only).html :: BSComponent :: render_css_classes
Renderself
css clases as a class
attribute.
core :: Writable :: write_to_bytes
Likewrite_to
but return a new Bytes (may be quite large)
core :: Writable :: write_to_file
Likewrite_to
but take care of creating the file
core :: Writable :: write_to_string
Likewrite_to
but return a new String (may be quite large).
# A `<ul>` list tag.
#
# Example:
#
# ~~~
# var lst = new UnorderedList
# lst.add_li(new ListItem("foo"))
# lst.add_li(new ListItem("bar"))
# lst.add_li(new ListItem("baz"))
#
# assert lst.write_to_string == """
# <ul>
# <li>foo</li>
# <li>bar</li>
# <li>baz</li>
# </ul>
# """
# ~~~
class UnorderedList
super HTMLList
redef fun rendering do
addn "<ul{render_css_classes}>"
for item in items do add item
addn "</ul>"
end
end
lib/html/bootstrap.nit:169,1--195,3