Html
Html
classClass responsible for generating HTML strings that will be rendered to the user.
Generates an HTML tag. For instance:
Html.tag('a', { href: 'meta/index'}, 'Home page')
// => '<a href="meta/index">Home page</a>'
Html.tag('img', { src: 'foo.png'})
// => '<img src="foo.png">'
Html.tag('div', 'box', () => { return "Hello world"})
// => '<div class="box">Hello world</div>'
Parameters
Returns String
Returns the necessary mark-up to display a media’s options for sharing, downloading, tagging or adding a media to a playlist.
Parameters
service
String The record’s service.Returns String
Returns a span
having the proper Glyphicon’s class.
Parameters
name
String The glyph name.Returns String