mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-22 01:37:59 +02:00
Support for empty parent, for | to separate columns
This commit is contained in:
parent
3552837b4f
commit
be3c968e2b
2 changed files with 40 additions and 9 deletions
|
@ -551,12 +551,34 @@ namespace Beefy.widgets
|
|||
public bool mDisabled;
|
||||
public bool mBold;
|
||||
public IDrawable mIconImage;
|
||||
public bool mForceParent;
|
||||
|
||||
public ~this()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public bool IsEmpty
|
||||
{
|
||||
get
|
||||
{
|
||||
return mItems.IsEmpty;
|
||||
}
|
||||
}
|
||||
|
||||
public bool IsParent
|
||||
{
|
||||
get
|
||||
{
|
||||
return !mItems.IsEmpty || mForceParent;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
mForceParent = value;
|
||||
}
|
||||
}
|
||||
|
||||
public virtual Menu AddItem(StringView label = default)
|
||||
{
|
||||
Menu item = new Menu();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue