AtkTabbedPane

From Achievo/ATK Wiki

Jump to: navigation, search

Attribute: atkTabbedPane

API docs | Flags

List of other attributes

atkTabbedPane screenshot

Description

the atkTabbedPane can be used to group attributes into tabs. An example application of this is the situation where a customer has a billing address and a shipping address. By adding all the address fields and then placing them in an atkTabbedPane, you can visually separate the fields into tabs.

Examples

The following code adds several attributes, and then groups them into 2 tabs:

  $this->add(new atkAttribute("billing_street"));
  $this->add(new atkAttribute("billing_city"));
 
  $this->add(new atkAttribute("shipping_street"));
  $this->add(new atkAttribute("shipping_city"));
 
  $this->add(new atkTabbedPane("addresses",
                   array("shipping"=>array("shipping_street", "shipping_city"),
                         "billing"=>array("billing_street", "billing_street")));

Relevant howto's

Personal tools
Navigation