public ListViewItem(T item, ListViewConfig <T> config)
 {
     _item   = item;
     _config = config;
     this.AddTextRenderer(config.Font,
                          text: config.NameSelector(item),
                          color: config.Color,
                          origin: config.Origin);
     TextRenderer = GetComponent <TextRenderer>();
 }
        public ListView(IEnumerable <T> items, ListViewConfig <T> config)
        {
            var listViewItems = items
                                .Select(item => new ListViewItem(item, config))
                                .ToList();

            listViewItems.ForEach(i => this.AddChild(i));

            AddComponent(new ListViewController(listViewItems));

            _listViewItems = listViewItems;
        }