Esempio n. 1
0
 public BaseDemo(string name, string category)
 {
     DemoName = name;
     DemoCategory = category;
     Container = new DivElement();
     Container.Style.Width = "100%";
     Container.Style.Height = "100%";
 }
Esempio n. 2
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></returns>
 public virtual jQuery After(Element content)
 {
     return null;
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
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;
 }
Esempio n. 5
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(Array content, Element content2)
 {
     return null;
 }
Esempio n. 6
0
 /// <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;
 }
Esempio n. 7
0
 /// <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;
 }
Esempio n. 8
0
 /// <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;
 }
Esempio n. 9
0
 /// <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;
 }
Esempio n. 10
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></returns>
 public virtual jQuery After(Element content, string content2)
 {
     return null;
 }
Esempio n. 11
0
 /// <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;
 }
Esempio n. 12
0
 /// <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;
 }
Esempio n. 13
0
 /// <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;
 }
Esempio n. 14
0
 /// <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;
 }
Esempio n. 15
0
 /// <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;
 }
Esempio n. 16
0
 /// <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;
 }
Esempio n. 17
0
 /// <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;
 }
Esempio n. 18
0
 /// <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;
 }
Esempio n. 19
0
 /// <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;
 }
Esempio n. 20
0
 /// <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;
 }
Esempio n. 21
0
 /// <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;
 }
Esempio n. 22
0
 /// <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;
 }
Esempio n. 23
0
 /// <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;
 }
Esempio n. 24
0
        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);
        }
Esempio n. 25
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;
 }
Esempio n. 26
0
 /// <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;
 }
Esempio n. 27
0
 public extern static void Render(ReactElement element, Element container);
Esempio n. 28
0
 /// <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;
 }
Esempio n. 29
0
 /// <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;
 }
Esempio n. 30
0
 /// <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;
 }