Exemple #1
0
 public Item(IComponent component)
 {
     InnerElement = Button(_("tss-contextmenu-item"));
     InnerElement.appendChild(component.Render());
     AttachClick();
     InnerElement.addEventListener("mouseover", OnItemMouseOver);
 }
            public Item(IComponent component)
            {
                if (component is ITextFormating itf && (itf is Button || itf is Link))
                {
                    itf.SetTextAlign(TextAlign.Left);
                }

                _innerComponent = component.Render();
                InnerElement    = Div(_("tss-contextmenu-item"), _innerComponent);
                InnerElement.appendChild(_innerComponent);
                AttachClick();
                InnerElement.addEventListener("mouseenter", OnItemMouseEnter);
                InnerElement.addEventListener("mouseleave", OnItemMouseLeave);
            }
 public void AddAnimatedTitle(IComponent component)
 {
     InnerElement.appendChild(GetAnimatedItem(component, true));
 }
 public void AddAnimated(IComponent component, bool grow = false, string customPadding = "")
 {
     InnerElement.appendChild(GetAnimatedItem(component, false, grow, customPadding));
 }
Exemple #5
0
 public void AddAnimated(IComponent component)
 {
     InnerElement.appendChild(GetAnimatedItem(component, false));
 }