Nov 16 2009

goog.ui.TabPane: Create tabs with Google Closure

Category: google closureDavide Zanotti @ 4:08 pm

Hi everyone,
by starting with this post I would like to begin a series of posts dedicated to the new javascript library released by Google: Closure!
Today I will focus my attention on tabs creation, since this is maybe the most common user interface component in a web application.
In order to create Closure tabs, we need to import the base js file (/goog/base.js) and then require the class goog.ui.TabPane. Inside our head (or body) we will get the following:

1
2
3
4
<script src="closure/goog/base.js"></script>
<script type="text/javascript">
    goog.require('goog.ui.TabPane.TabPage');
</script>

Continue reading “goog.ui.TabPane: Create tabs with Google Closure”

Tags: , ,


« Previous Page