Example #1
0
 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); });
     }
 }
Example #2
0
        public virtual void SetInfo(object info, int rowIndex, int columnIndex, WDataTable dataTable)
        {
            if (!m_init)
            {
                InitElement();
            }

            bindDataTable = dataTable;
            bindDataTable.OnInitElement(rowIndex, columnIndex, this);
        }
Example #3
0
        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
        }
Example #4
0
        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();
        }
Example #5
0
 public override void SetInfo(object info, int rowIndex, int columnIndex, WDataTable dataTable)
 {
     base.SetInfo(info, rowIndex, columnIndex, dataTable);
     m_text.text = info.ToString();
 }