如何解决如何显示和隐藏反应式按钮中的选项?
我不知道该如何处理。
我有三个按钮,我希望当用户选择其中一个按钮时,出现一个带有选项的复选框,而当用户更改按钮时,带有选项的复选框也会改变。
示例
actionButton("casos_button","Casos",class = "btn-primary "),actionButton("muertes_button","Muertes",actionButton("hospitalizados","Hospitalizados",
如果用户选择第一个按钮,则会出现一个带有3个选项的复选框,如果他选择了第二个按钮,则对应于第一个按钮的选项就会消失,并且第二个按钮的复选框选项也会出现。
按钮1 按钮2 按钮3
如果用户选择按钮1,则出现带有3个选项的复选框 如果用户选择按钮2,则出现带有4个选项的复选框 如果用户选择按钮3,则会出现一个带有2个选项的复选框
我是一个有光泽的菜鸟,我真的很感谢你的光环
解决方法
这是一种使用add_action('woocommerce_order_details_before_order_table_items',function() {
$current_user = wp_get_current_user();
_e('<p class="you-ordered">Hey! ' . $current_user->display_name .
' Here\'s what you ordered:</div></p>');
});
首先隐藏paused = False
running = True
while running:
# RGB = Red,Green,Blue
screen.fill((0,0))
# Background Image
screen.blit(background,(0,0))
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_p: # Pausing
paused = True
if event.key == pygame.K_u: # Unpausing
paused = False
if not paused:
'''The rest of the code,with the movement key presses,etc.'''
的解决方案:
shinyjs
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。