0.0.34 forms
This commit is contained in:
@@ -19,10 +19,10 @@ function chooseRadioInput(el, callback){
|
||||
if (callback) callback(el, el_name)
|
||||
}
|
||||
|
||||
function generateRadioInput(data){
|
||||
function generateRadioInput(data, selected){
|
||||
let html = `
|
||||
<div class="cw_w_radio_inputs_radio_input" data-name="${data.name}">
|
||||
<div class="radio" onclick="chooseRadioInput(this, ${data.callback})"></div>
|
||||
<div class="radio${selected? ' checked' : ''}" onclick="chooseRadioInput(this, ${data.callback})"></div>
|
||||
<div class="radio_label" onclick="chooseRadioInput(this, ${data.callback})">${data.title}</div>
|
||||
</div>
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user