CSS class used for decoration: tv-component
space or enter on focused component.CSS class used for decoration: tv-button
CSS class used for decoration: tv-toggle-button
Browser link (<a> element) has serveral downsides:
CSS class used for decoration: tv-link
HTML structure:
<div class="tv-link" href="http://link to external site">Link content</div>
Click or press space or enter to go to url.
Containers (JS: tv.ui.Container, CSS: tv-container) are powerful building blocks for your application.
Both horizontal (CSS: tv-container-horizontal)...
...and vertical (CSS: tv-container-vertical) containers are supported.
Containers are great when you have more content than place to display it.
To suit different needs, there are two scrolling policies. One keeps selected
item at start of the container (CSS: tv-container-start-scroll).
The other one tries to position selected item in the middle of the container (CSS: tv-container-middle-scroll).
Use ← and → or mouse to discover differences between policies.
Animations (CSS: -webkit-transition) enrich user experience, helping user to understand what is going on.
Try to scroll following container.
To reduce number of moving parts and make scrolling even more visually pleasant, you can use detached highlight (CSS: tv-container-highlight).
Notice that highlight stays in place when container is scrolled.
Slits (CSS: tv-container-start-slit, tv-container-end-slit) suggest there are more items to the left and right of scrolling window.
Lightbox is a simple full screen photo viewer.
Just invoke from JavaScript tv.ui.Lightbox.show(listOfPhotos, startIndex);
Tab containers are great for building menus and other tabbed content.
Code structure:
<div class="tv-tab-container tv-container-vertical">
<div class="tv-tab-container-bar tv-container-horizontal">
// Tab bar components.
</div>
<div class="tv-tab-container-content tv-container-horizontal">
// Content components.
</div>
</div>
Menu extends tab container by introducing new ways of navigation, such as entering submenu when Enter is pressed.
As other TV UI components, menu doesn't imply any specific looks. This expanding menu...
...mostly differs from sliding menu by CSS styles, having almost identical HTML structure.
goog.net.Jsonp), generate DOM on the fly and decorate it (JS: tv.ui.decorateChildren).