Action Bar

Action Bar definition: properties, methods and examples.

The UI.ActionBar is the main application bar. This contains UI.ButtonBar or UI.ActionGroup.

Examples:

<?php

/**
 * Action Bar control example.
 * mainActionBar.php
 */
 
$win = new SDPanel();
$win->setCaption("Hello world!");
 
$tabMain = new Table();
 
$actionBar = new ActionBar();
$actionBar->setClass("applicationBars");
$win->addControl($actionBar);
 
$win->addControl($tabMain);
 
?>

Properties:

  • className : Class
    Class defined in .css stylesheet
  • showApplicationBar : Boolean
    Determines whether the Action Bar is shown or not.
  • control : ButtonBar | ActionGroup
    Action Bar's control

Methods:

  • setClass( className )
    Set style class for the Action Bar.
  • setShowApplicationBar( showApplicationBar )
    Sets the value of the show application bar property.
  • addControl( control )
    Sets the value of the control property.

Download code example

Rate This Article

(0 out of 0 people found this article helpful)