Esempio n. 1
0
        public void Add(Item component)
        {
            _items.Add(component);
            ScrollBar.GetCorrectContainer(_childContainer).appendChild(component.Render());

            component.OnClick((s, e) =>
            {
                ItemClick?.Invoke(s, e);
                Hide();
            });
        }
Esempio n. 2
0
 public void Replace(Item newComponent, Item oldComponent)
 {
     ScrollBar.GetCorrectContainer(_childContainer).replaceChild(newComponent.Render(), oldComponent.Render());
 }
Esempio n. 3
0
 public void Clear()
 {
     ClearChildren(ScrollBar.GetCorrectContainer(_childContainer));
 }