JButton/fetchIconClass: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 40: | Line 40: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=fetchIconClass | category=fetchIconClass | ||
category=JButton | category=JButton | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 00:20, 25 March 2017
Description
Method to get the CSS class name for an icon identifier
<! removed transcluded page call, red link never existed >
Syntax
fetchIconClass($identifier)
| Parameter Name | Default Value | Description |
|---|---|---|
| $identifier | $identifier Icon identification string |
Returns
string CSS class name
Defined in
libraries/joomla/html/toolbar/button.php
Importing
jimport( 'joomla.html.toolbar.button' );
Source Body
function fetchIconClass($identifier)
{
return "icon-32-$identifier";
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples