ListBoxDelimiter
extends MenuBoxControl
in package
Using to delimit items of ListBox
Table of Contents
- $Character : string
- $Disabled : bool
- $DisabledBackgroundColor : string
- $DisabledForegroundColor : string
- $Hint : string
- $HintBackgroundColor : string
- $HintForegroundColor : string
- $Id : string
- $ItemBackgroundColor : string
- $ItemForegroundColor : string
- $Length : int
- $Name : string
- $Ordering : int
- $Selectable : bool
- $Visible : bool
- __construct() : mixed
- GetMenuBox() : MenuBox|null
- Remove() : void
- Removes element from current MenuBox
- Render() : string
- SetItemStyle() : ControlItem
- Set style for item
Properties
$Character
public
string
$Character
= "="
Character of the delimiter
$Disabled
public
bool
$Disabled
= false
Is item disabled
$DisabledBackgroundColor
public
string
$DisabledBackgroundColor
= \Data\String\BackgroundColors::AUTO
Text's background color when item disabled
$DisabledForegroundColor
public
string
$DisabledForegroundColor
= \Data\String\ForegroundColors::AUTO
Text's color when item disabled
$Hint
public
string
$Hint
= ""
Item's hint. Display when item is selected
$HintBackgroundColor
public
string
$HintBackgroundColor
= \Data\String\BackgroundColors::AUTO
Hint background color
$HintForegroundColor
public
string
$HintForegroundColor
= \Data\String\ForegroundColors::DARK_RED
Hint foreground color
$Id
public
string
$Id
= ""
Any value here. ID is not using anywhere except your code
$ItemBackgroundColor
public
string
$ItemBackgroundColor
= \Data\String\BackgroundColors::AUTO
Text's background color
$ItemForegroundColor
public
string
$ItemForegroundColor
= \Data\String\ForegroundColors::DARK_GRAY
$Length
public
int
$Length
= 40
Length of the delimiter
$Name
public
string
$Name
= ""
Item's title
$Ordering
public
int
$Ordering
= 1
Item's ordering
$Selectable
public
bool
$Selectable
= false
(always FALSE) Element cannot be selected because it's not clickable
$Visible
public
bool
$Visible
= true
Is item visible
Methods
__construct()
public
__construct([string $name = "" ][, string $hint = "" ]) : mixed
Parameters
- $name : string = ""
- $hint : string = ""
Return values
mixed —GetMenuBox()
public
GetMenuBox() : MenuBox|null
Return values
MenuBox|null —Returns MenuBox that this item is in
Remove()
Removes element from current MenuBox
public
Remove() : void
Return values
void —Render()
public
Render() : string
Return values
string —Rendered delimiter
SetItemStyle()
Set style for item
public
SetItemStyle(ForegroundColors $foregroundColor[, BackgroundColors $backgroundColor = BackgroundColors::AUTO ]) : ControlItem
Parameters
- $foregroundColor : ForegroundColors
- $backgroundColor : BackgroundColors = BackgroundColors::AUTO