public override void SetInfo(object info, int rowIndex, int columnIndex, WDataTable dataTable) { base.SetInfo(info, rowIndex, columnIndex, dataTable); m_text.text = info.ToString(); m_button.onClick.RemoveAllListeners(); if (bindDataTable.CanSortByColumnIndex(columnIndex)) { m_button.onClick.AddListener(() => { bindDataTable.OnClickButton(rowIndex, columnIndex); }); } }
public virtual void SetInfo(object info, int rowIndex, int columnIndex, WDataTable dataTable) { if (!m_init) { InitElement(); } bindDataTable = dataTable; bindDataTable.OnInitElement(rowIndex, columnIndex, this); }
public override void SetInfo(object info, int rowIndex, int columnIndex, WDataTable dataTable) { base.SetInfo(info, rowIndex, columnIndex, dataTable); if (m_text != null) { m_text.text = info.ToString(); } #if WDT_USE_TMPRO if (m_tmpText != null) { m_tmpText.text = info.ToString(); } #endif }
public void SetColumnInfo(IList <WColumnDef> columnsDefsIn, WDataTable dataTable) { bindDataTable = dataTable; if (!init) { InitContainter(); } columnsDefs = columnsDefsIn; BuildChild(); for (int i = 0; i < elements.Count; i++) { elements[i].SetInfo(columnsDefs[i].name, -1, i, bindDataTable); } UpdateHeadSize(); }
public override void SetInfo(object info, int rowIndex, int columnIndex, WDataTable dataTable) { base.SetInfo(info, rowIndex, columnIndex, dataTable); m_text.text = info.ToString(); }