【发布时间】:2021-06-25 12:54:23
【问题描述】:
我正在使用我自己的输入组件。我想从另一个组件访问输入值。我可以传递一些值(例如;提示文本、颜色),但我无法检索输入值。我搜索了很多,但我找不到任何东西。
我可以这样做:
inputComponent("your name",Colors.red);
我想这样做:
inputComponent("your name",Colors.red, onChangeFunc({
String inputValue = inputComponent.getValue(); // like this
}));
【问题讨论】: