Accordion
Menu
Accordion PHP Methods
addContent(string $mContent, string $bgColor = "") v5
Set collapse accordion body content.
PARAMETERS:
$mContent = String, body content as HTML or text.
$bgColor = string, body background color.
RETURN VALUE:
Void addHeader(string $hContent, bool $isOpen = true, string $bgColor = "") v5
Set collapse menu header content and style.
PARAMETERS:
$shContent = String, header text.
$isOpen = Bool, true to create an open collapse item, false otherwise (Default False).
$bgColor = string, header background color.
RETURN VALUE:
Void addSubHeader(string $shContent, bool $isOpen = false, string $bgColor = "") v5
Set collapse menu sub-header content and style.
PARAMETERS:
$shContent = String, sub-header text.
$isOpen = Bool, true to create an open collapse item, false otherwise (Default False).
$bgColor = string, sub-header background color.
RETURN VALUE:
Void getHeaderHTML(string $title, int $rowCount, bool $isOpen = true, string $color = "") v5
Gets the accordion header HTML code
PARAMETERS:
$title = String, Header Title.
$rowCount = int, number of header rows.
$isOpen = Bool, true to create an open collapse item, false otherwise (Default true).
$color = String, header background color.
RETURN VALUE:
String = HTML code for the created accordion header. getSubHeaderHTML(string $title, int $rowCount, int $tuMarker, bool $isOpen = false, string $color = "") v5
Gets the accordion sub-header HTML code
PARAMETERS:
$title = String, sub-Header Title.
$rowCount = int, number of sub-header rows.
$isOpen = Bool, true to create an open collapse item, false otherwise (Default true).
$color = String, sub-header background color.
RETURN VALUE:
String = HTML code for the created accordion sub-header. getVerticalTable(string $tWidth = "100%") v5
Gets the accordion HTML code
PARAMETERS:
$tWidth = Accordion width (Default 100%).
RETURN VALUE:
String = HTML code for the created accordion. setName(string $menuName) v5
Sets menu title.
PARAMETERS:
$menuName = String, Menu title.
RETURN VALUE:
VoidAccordion PHP Variables
🔎︎ %l4610%