rwblinn Well-Known Member Licensed User Longtime User Dec 2, 2017 #1 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
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