Beispiel #1
0
        public T1 GetItem <T1>(string id)
            where T1 : IItem
        {
            object item = WebPageBuilder.CreateComponent <T>(this, id);

            return((T1)item);
        }
Beispiel #2
0
        public override List <T> GetItems()
        {
            var cellsList  = new List <T>();
            var cellsCount = GetCellsCount();

            for (int i = 1; i <= cellsCount; i++)
            {
                cellsList.Add((T)WebPageBuilder.CreateComponent <T>(this, $"{CellScss}[{i}]"));
            }
            return(cellsList);
        }
Beispiel #3
0
        public override List <T> GetItems()
        {
            var cellsList  = new List <T>();
            var cellsCount = GetRowsCount();

            for (var i = 1; i <= cellsCount; i++)
            {
                cellsList.Add((T)WebPageBuilder.CreateComponent <T>(this, i.ToString()));
            }
            return(cellsList);
        }
 public TRow GetRow(int index) => WebPageBuilder.CreateComponent <TRow>(this, index.ToString());
Beispiel #5
0
        //****     GET     ************************************************************************************************************************
        public override List <Column> GetItems()
        {
            var columns = new List <Column>();

            columns = ColumnScss == null?base.GetItems() : GetIds().Where(id => !id.Contains("'")).Select(id => (Column)WebPageBuilder.CreateComponent <Column>(this, id, ColumnScss)).ToList();

            return(columns);
        }
Beispiel #6
0
 public virtual T GetItem(string id) => WebPageBuilder.CreateComponent <T>(this, id);
 public TRow GetRow(string id) => WebPageBuilder.CreateComponent <TRow>(this, id);
Beispiel #8
0
 public virtual List <T> GetItems()
 {
     return(this.GetIds().Select(id => (T)WebPageBuilder.CreateComponent <T>(this, id)).ToList());
 }