B4J Question [ABMaterial]How to create a custom component using ABM controls

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

the ABMaterial demo outlines how to create a custom component from a JavaScript plugin.

Question: How to create a custom component (or better custom control) using standard ABM controls?

Example
Create a MinMaxInput control composed out of 2 ABMInput controls [ABMInput Min][ABMInput Max].
B4X:
Dim custMinMaxInput As CustomMinMaxInput
custMinMaxInput.Initialize(page, "custMinMaxInput", "Min", 25, "Max", 75, "bluegrey")
page.Cell(Row,Cell).AddComponent(custMinMaxInput)
Get the values:
B4X:
Dim MinValue as Int = custMinMaxInput.Min 
Dim MaxValue as Int = custMinMaxInput.Max
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…