我知道如何在UI上添加文本输入框、单选按钮或日期输入框,现在我想要的是询问用户,他想输入文本还是日期范围?根据用户的选择,显示文本输入框或日期输入框。不确定如何实现。
Pseudo Code
1) Please choose if you want to enter text or date range.
Radio Button 1 - Text Input
Radio Button 2 - Date Range
2a) If the user chooses Radio Button 1, then Text Input should be displayed on the main panel, option to enter two dates (From & to) should not be displayed
2b) If the user chooses Ratio Button 2, then the option to enter two dates (From & to) should be displayed on the Main panel and text input should not be displayed.
我不确定如何做这件事,需要一些指导。