代码之家  ›  专栏  ›  技术社区  ›  Cybernetic

如何在azle中检查单选按钮

  •  0
  • Cybernetic  · 技术社区  · 7 年前

    我有两个单选按钮,允许用户选择是或否:

    add_radiobutton('option_cell', 1, {
         "this_class" : "my_radio",
         "text" : "YES",
         "text_class" : "radio_label",
         "name" : "yes_no_radio"
         })
    add_radiobutton('option_cell', 2, {
         "this_class" : "my_radio",
         "text" : "NO",
         "text_class" : "radio_label",
         "name" : "yes_no_radio"
         }) 
    

    如何检查单选按钮是否被选中?

    1 回复  |  直到 6 年前
        1
  •  0
  •   Cybernetic    7 年前
    get_property('my_radio',1,'property':'checked')
    
    
    

    enter image description here

    get_property('my_radio', 1, {'property' : 'checked'})
    

    enter image description here

    推荐文章