SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 289 | Next

James Kennard

"Mastering Joomla! 1.5 Extension and Framework Development"

formvalidation JHTML type, described briefly
earlier in this chapter.
Toolbar
The administration toolbar consists of a title and a number of buttons that, as an
administrator, we use to perform actions. The following example shows the toolbar
as it appears when we edit an article:
Chapter 8
[ 217 ]
We modify the administrative component toolbar in our view classes using the static
JToolBarHelper class. In this example, we add a cancel button to the menu bar and
set the title of the menu bar to FooBar.
JToolBarHelper::title('FooBar');
JToolBarHelper::cancel();
There are many different buttons we can add to the menu bar and if we cannot find
a suitable button we can define our own. Most of the buttons act like form buttons
for the form adminForm. For some of the buttons to perform correctly the form must
include certain input fields.
The following tables give detail of the buttons that we can add to the toolbar:
addNew( task : string='add', alt : string='New' ) : void
Adds an 'add new' button; default task is add.


Pages:
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301
bukmacherskie zakłady badania kierowców łódź zagęszczanie włosów prumyslnikovu zagęszczanie włosów