Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 07:41:02 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Tutorial 11 - Tab/Stack/Button View Programming  (Read 6029 times)
steven
Moderator
Hero Member
*****
Posts: 544



View Profile
« on: February 12, 2009, 01:44:46 AM »

Everybody feels interesting at the first sight of this title. Why do you, Steven , put Stacks/Tabs/Button Views together. Well, that's because they are same.If you have took a look of hierarchy chat, you will find Stack/Button View inherit from Tabs. A a result, you could use same functions/properities to deal with any of them. The following code will take Stack for example, but it can apply to Tab/Button View. I assume you have dragged a Stack to the design area. By default, it has four items('a','b','c','d').

How to add a new item to stack danymically?

You could use insertItems to add one or more items. Code above will add a new item with caption "New Tab" after item "d". If you would like new item appears before "d", set third parameters to true. You could also add two items by


How to delete a specified item danymically?

You could use removeItems to remove one or more items. Note that you need do

intead of

to remove one item. The first parameter must be an array.

How to update one item of stack danymically?

Code above use updateItem to danymically change item 'a'. Code will add a close button and chage caption to "another caption";

How to append a new grid to stack danymically?

Code above will create a new grid with two rows and put grid into item a.
« Last Edit: March 12, 2009, 02:20:40 AM by steven » Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!