All Blocks:
Simple Demo Blocks:
Demo:
Docs:
Docs for: PopUpWindow
Events
OnPopUpListClick
Event triggered when an item in a popup list is clicked.
id | text
contextPosition | number
position | number
OnErrorOccurred
Event triggered when an error occurs.
error | text
errorFrom | text
Methods
BindPopUpComponent
Binds a popup component to a list of items, creating a popup list.
id | text
component | component
itemList | list
IndicatorView
Sets the indicator view for a popup list.
id | text
component | component
IndicatorSize
Sets the size of the indicator for a popup list.
id | text
widthPixel | number
heightPixel | number
NormalTextColor
Sets the normal text color for items in a popup list.
id | text
color | number
NormalBackgroundColor
Sets the background color for normal items in a popup list.
id | text
color | number
PressedTextColor
Sets the text color for pressed items in a popup list.
id | text
color | number
PressedBackgroundColor
Sets the background color for pressed items in a popup list.
id | text
color | number
DividerHeight
Sets the divider height for items in a popup list.
id | text
heightPixel | number
DividerWidth
Sets the width of the divider for items in a popup list.
id | text
widthPixel | number
DividerColor
Sets the color of the divider for items in a popup list.
id | text
color | number
BackgroundCornerRadius
Sets the corner radius of the background for items in a popup list.
id | text
radiusValue | number
TextSize
Sets the text size for items in a popup list.
id | text
sizePixel | number
TextPadding
Sets the padding for text items in a popup list.
id | text
left | number
top | number
right | number
bottom | number
TextPaddingLeft
Sets the left padding for text items in a popup list.
id | text
paddingValue | number
TextPaddingTop
Sets the top padding for text items in a popup list.
id | text
paddingValue | number
TextPaddingRight
Sets the right padding for text items in a popup list.
id | text
paddingValue | number
TextPaddingBottom
Sets the bottom padding for text items in a popup list.
id | text
paddingValue | number
Sp2Px
Converts sp (scaled pixels) to px (pixels).
value | number
Return type : number
Dp2Px
Converts dp (density-independent pixels) to px (pixels).
value | number
Return type : number
idExists
Checks if a popup list with the given id exists.
id | text
Return type : boolean
Lib Used:
AIX:
me.aemo.popupwindow.aix (27.5 KB)