I have the following code;
var isEditable = !self.model.hasPrivilege("UPDATE_INFO") || !self.editInfo;
return "<input type='checkbox' name='flag' class='flag' />";
Now my question is while doing the return for the input, can I add condition for isEditable as part of the same return "<input type='checkbox'
Basically I want to return disabled checkbox if isEditable is false and vice-versa ?