public void OnValueChanged(BaseCheckboxCell cell, bool value) { isOn = value; if (callback != null) { callback(this); } }
public override ScrollViewCell CreateCell(RecycleScrollView scrollView, AssetConfig config, int cellIndex) { BaseCheckboxCell cell = (BaseCheckboxCell)scrollView.CreateCell("CheckboxCell"); cell.SetText(DisplayText); cell.SetHeaderOffset(LogConsoleSettings.GetTreeViewOffsetByLevel(level)); cell.SetBackgroundColor(LogConsoleSettings.GetCellColor(cellIndex)); cell.SetToggle(isOn); cell.OnValueChanged = OnValueChanged; return(cell); }