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”

In my spare time, these days I’m looking at Google maps (Javascript) API, because relatively soon, I will have to realize a web site in which include a custom and interactive map.