Jump to content

AtkTabbedPane: Difference between revisions

From NusaATK
 
Line 19: Line 19:
   $this->add(new atkTabbedPane("addresses",
   $this->add(new atkTabbedPane("addresses",
                   array("shipping"=>array("shipping_street", "shipping_city"),
                   array("shipping"=>array("shipping_street", "shipping_city"),
                         "billing"=>array("billing_street", "shipping_street")));
                         "billing"=>array("billing_street", "billing_street")));


</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 07:07, 26 August 2008

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