예제 #1
0
    private Cell AddCell(int rowCount, string content = "")
    {
        Cell cell = new Cell(trColumn, JsonTable.CreateInstance(trColumn), rowCount, content);

        cells.Add(cell);
        return(cell);
    }
예제 #2
0
 public Column(RectTransform container, string title)
 {
     cells               = new List <Cell>();
     lblHeader           = JsonTable.CreateInstance(container);
     lblHeader.fontStyle = FontStyles.Bold;
     lblHeader.text      = title;
     lblHeader.name      = $"Column - {title}";
     trColumn            = lblHeader.GetComponent <RectTransform>();
 }