public BaseDemo(string name, string category) { DemoName = name; DemoCategory = category; Container = new DivElement(); Container.Style.Width = "100%"; Container.Style.Height = "100%"; }
/// <summary> /// Insert content, specified by the parameter, after each element in the set of matched elements. /// </summary> /// <param name="content">DOM element, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param> /// <returns></returns> public virtual jQuery After(Element content) { return null; }
/// <summary> /// Search for a given element from among the matched elements. /// </summary> /// <param name="element">The DOM element or first element within the jQuery object to look for.</param> /// <returns></returns> public virtual int Index(Element element) { return 0; }
/// <summary> /// Insert content, specified by the parameter, after each element in /// the set of matched elements. /// </summary> /// <param name="content"> /// DOM element, array of elements, HTML string, or jQuery object to /// insert at the end of each element in the set of matched elements. /// </param> /// <param name="content2"> /// One or more additional DOM elements, arrays of elements, HTML /// strings, or jQuery objects to insert at the end of each element in /// the set of matched elements. /// </param> /// <returns>The jqLite instance of itself.</returns> public virtual jqLite After(string content, Element content2) { return null; }
/// <summary> /// Insert content, specified by the parameter, after each element in /// the set of matched elements. /// </summary> /// <param name="content"> /// DOM element, array of elements, HTML string, or jQuery object to /// insert at the end of each element in the set of matched elements. /// </param> /// <param name="content2"> /// One or more additional DOM elements, arrays of elements, HTML /// strings, or jQuery objects to insert at the end of each element in /// the set of matched elements. /// </param> /// <returns>The jqLite instance of itself.</returns> public virtual jqLite After(Array content, Element content2) { return null; }
/// <summary> /// Replace each target element with the set of matched elements. /// </summary> /// <param name="target">A selector string, jQuery object, DOM element, or array of elements indicating which element(s) to replace.</param> /// <returns></returns> public virtual jQuery ReplaceAll(Element target) { return null; }
/// <summary> /// For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. /// </summary> /// <param name="element">An element to match elements against.</param> /// <returns></returns> public virtual jQuery Closest(Element element) { return null; }
/// <summary> /// Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. /// </summary> /// <param name="element">A DOM node or jQuery object indicating where to stop matching following sibling elements.</param> /// <param name="filter">A string containing a selector expression to match elements against.</param> /// <returns></returns> public virtual jQuery PrevUntil(Element element, string filter) { return null; }
/// <summary> /// Reduce the set of matched elements to those that have a descendant that matches the selector or DOM element. /// </summary> /// <param name="element">A DOM element to match elements against.</param> /// <returns></returns> public virtual jQuery Has(Element element) { return null; }
/// <summary> /// Insert content, specified by the parameter, after each element in the set of matched elements. /// </summary> /// <param name="content">DOM element, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param> /// <param name="content2">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.</param> /// <returns></returns> public virtual jQuery After(Element content, string content2) { return null; }
/// <summary> /// Insert every element in the set of matched elements before the target. /// </summary> /// <param name="target">A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.</param> /// <returns></returns> public virtual jQuery InsertBefore(Element target) { return null; }
/// <summary> /// Insert every element in the set of matched elements after the target. /// </summary> /// <param name="target">A selector, element, HTML string, array of elements, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.</param> /// <returns></returns> public virtual jQuery InsertAfter(Element target) { return null; }
/// <summary> /// Insert content, specified by the parameter, before each element in the set of matched elements. /// </summary> /// <param name="content">DOM element, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param> /// <param name="content2">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.</param> /// <returns></returns> public virtual jQuery Before(jQuery content, Element content2) { return null; }
/// <summary> /// Insert content, specified by the parameter, before each element in the set of matched elements. /// </summary> /// <param name="content">DOM element, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param> /// <param name="content2">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.</param> /// <returns></returns> public virtual jQuery Before(Element content, string content2) { return null; }
/// <summary> /// Insert content, specified by the parameter, before each element in the set of matched elements. /// </summary> /// <param name="content">DOM element, array of elements, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param> /// <returns></returns> public virtual jQuery Before(Element content) { return null; }
/// <summary> /// Get the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or jQuery object. /// </summary> /// <param name="element">A DOM node or jQuery object indicating where to stop matching following sibling elements.</param> /// <returns></returns> public virtual jQuery ParentsUntil(Element element) { return null; }
/// <summary> /// Get all preceding siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object. /// </summary> /// <param name="element">A DOM node or jQuery object indicating where to stop matching following sibling elements.</param> /// <returns></returns> public virtual jQuery PrevUntil(Element element) { return null; }
/// <summary> /// Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. /// </summary> /// <param name="element">One or more elements to match the current set of elements against.</param> /// <returns></returns> public virtual bool Is(Element element) { return false; }
/// <summary> /// For each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree. /// </summary> /// <param name="selector">A string containing a selector expression to match elements against.</param> /// <param name="element">A DOM element within which a matching element may be found. If no context is passed in then the context of the jQuery set will be used instead.</param> /// <returns></returns> public virtual jQuery Closest(string selector, Element element) { return null; }
/// <summary> /// Check the current matched set of elements against a selector, element, or jQuery object and return true if at least one of these elements matches the given arguments. /// </summary> /// <param name="elements">One or more elements to match the current set of elements against.</param> /// <returns></returns> public virtual bool Is(Element[] elements) { return false; }
/// <summary> /// Get the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element. /// </summary> /// <param name="element">An element to match elements against.</param> /// <returns></returns> public virtual jQuery Find(Element element) { return null; }
/// <summary> /// Reduce the set of matched elements to those that match the selector or pass the function's test. /// </summary> /// <param name="elements">One or more DOM elements to match the current set of elements against.</param> /// <returns></returns> public virtual jQuery Filter(Element[] elements) { return null; }
/// <summary> /// Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed. /// </summary> /// <param name="newContent">The content to insert. May be an HTML string, DOM element, array of DOM elements, or jQuery object.</param> /// <returns></returns> public virtual jQuery ReplaceWith(Element newContent) { return null; }
private static void MakeList() { jQuery row = new jQuery("<div>").AddClass("row"); jQuery col1 = new jQuery("<div>").AddClass("col-sm-3").AppendTo(row); jQuery col2 = new jQuery("<div>").AddClass("col-sm-9").AppendTo(row); row.Get(0).Style.Padding = "20px"; AccordionPanel p = AccordionPanel.Make("Sharp THREEjs", "(jus a try out :)", "myID", PanelType.panel_default); foreach (KeyValuePair<string, List<BaseDemo>> kvp in Demos) { ListMaker m = new ListMaker(); foreach (BaseDemo d in kvp.Value) { m.AddListItem(d.DemoName, clickDemo, d); } p.AddPanel(kvp.Key, m.List); } col1.Append(p.MainContainer); row.AppendTo(Document.Body); DemoContainer = col2.Get(0); }
/// <summary> /// Insert content, specified by the parameter, after each element in /// the set of matched elements. /// </summary> /// <param name="content"> /// DOM element, array of elements, HTML string, or jQuery object to /// insert at the end of each element in the set of matched elements. /// </param> /// <returns>The jqLite instance of itself.</returns> public virtual jqLite After(Element content) { return null; }
/// <summary> /// If a given element is focused, this method draws a focus ring around the current path. /// </summary> /// <param name="element">The element to check whether it is focused or not.</param> public virtual void DrawFocusIfNeeded(Element element) { return; }
public extern static void Render(ReactElement element, Element container);
/// <summary> /// If a given element is focused, this method draws a focus ring around the current path. /// </summary> /// <param name="path">A Path2D path to use.</param> /// <param name="element">The element to check whether it is focused or not.</param> public virtual void DrawFocusIfNeeded(Path2D path, Element element) { return; }
/// <summary> /// Wrap an HTML structure around each element in the set of matched elements. /// </summary> /// <param name="wrappingElement">A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.</param> /// <returns>The jqLite instance of itself.</returns> public virtual jqLite Wrap(Element wrappingElement) { return null; }
/// <summary> /// Get all following siblings of each element up to but not including the element matched by the selector, DOM node, or jQuery object passed. /// </summary> /// <param name="element">A DOM node or jQuery object indicating where to stop matching following sibling elements.</param> /// <returns></returns> public virtual jQuery NextUntil(Element element) { return null; }