/// <summary>
 ///     Get the descendants of each element in the current set of tag, filtered by a action, jQuery object, or element
 /// </summary>
 /// <param name="original"></param>
 /// <param name="expression">
 ///     Jquery expression
 /// </param>
 public static JquerySelectorExtend Find(this JquerySelectorExtend original, JqueryExpression expression)
 {
     return(original.Find(selector => selector.Expression(expression)));
 }
Exemple #2
0
 /// <summary>
 ///     Select all elements at an <paramref name="index" /> less than <paramref name="index" /> within the matched set.
 /// </summary>
 public static JquerySelectorExtend It(this JquerySelectorExtend selector, int index)
 {
     return(selector.Custom(":it({0})".F(index)));
 }
Exemple #3
0
 public static JquerySelectorExtend Visible(this JquerySelectorExtend selector)
 {
     return(selector.Expression(JqueryExpression.Visible));
 }
 /// <summary>
 ///     Reduce the set of matched elements to a subset specified by a range of indices.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="start">
 ///     An integer indicating the 0-based position at which the elements begin to be selected. If negative, it indicates an
 ///     offset from the end of the set.
 /// </param>
 /// <param name="end">
 ///     An integer indicating the 0-based position at which the elements stop being selected. If negative, it indicates an
 ///     offset from the end of the set. If omitted, the range continues until the end of the set.
 /// </param>
 public static JquerySelectorExtend Slice(this JquerySelectorExtend original, Selector start, Selector end = null)
 {
     return(original.Method("slice", new object[] { start, end ?? 0 }));
 }
 /// <summary>
 ///     Get the children of each element
 /// </summary>
 /// <param name="original"></param>
 public static JquerySelectorExtend Children(this JquerySelectorExtend original)
 {
     return(original.Children(null));
 }
 /// <summary>
 ///     Get the siblings of each element in the set of matched elements, optionally filtered by a action
 /// </summary>
 /// <param name="original"></param>
 /// <param name="tag">
 ///     Html tag
 /// </param>
 public static JquerySelectorExtend Siblings(this JquerySelectorExtend original, HtmlTag tag)
 {
     return(original.Siblings(r => r.Tag(tag)));
 }
 /// <summary>
 ///     Get the siblings of each element in the set of matched elements, optionally filtered by a action
 /// </summary>
 /// <param name="original"></param>
 /// <param name="bOfClass">
 ///     Bootstrap class
 /// </param>
 public static JquerySelectorExtend Siblings(this JquerySelectorExtend original, B bOfClass)
 {
     return(original.Siblings(r => r.Class(bOfClass)));
 }
 /// <summary>
 ///     Selects all elements that do not match the given <paramref name="action" />.
 /// </summary>
 public static JquerySelectorExtend Not(this JquerySelectorExtend original, JqueryExpression expression)
 {
     return(original.Not(r => r.Expression(expression)));
 }
 /// <summary>
 ///     Selects all elements that do not match the given <paramref name="action" />.
 /// </summary>
 public static JquerySelectorExtend Not(this JquerySelectorExtend original, HtmlTag tag)
 {
     return(original.Not(r => r.Tag(tag)));
 }
 /// <summary>
 ///     Get all following siblings of each element in the set of matched elements, optionally filtered by a action.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="action">
 ///     action expression to match elements against.
 /// </param>
 public static JquerySelectorExtend NextAll(this JquerySelectorExtend original, Func <JquerySelector, JquerySelector> action)
 {
     return(AddTree(original, action, "nextAll"));
 }
 /// <summary>
 ///     Get all following siblings of each element in the set of matched elements, optionally filtered by a action.
 /// </summary>
 public static JquerySelectorExtend NextAll(this JquerySelectorExtend original)
 {
     return(original.NextAll(null));
 }
 /// <summary>
 ///     Add elements to the set of matched elements.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="bOfClass">
 ///     bootstrap of classes
 /// </param>
 public static JquerySelectorExtend Add(this JquerySelectorExtend original, B bOfClass)
 {
     return(Add(original, (Func <JquerySelector, JquerySelector>)(r => r.Class(bOfClass))));
 }
 /// <summary>
 ///     Get the descendants of each element in the current set of matched elements, filtered by a action, jQuery object, or
 ///     element
 /// </summary>
 /// <param name="original"></param>
 /// <param name="class">
 ///     Bootstrap classes
 /// </param>
 public static JquerySelectorExtend Next(this JquerySelectorExtend original, B @class)
 {
     return(original.Next(s => s.Class(@class)));
 }
 /// <summary>
 ///     Get the descendants of each element in the current set of matched elements, filtered by a action, jQuery object, or
 ///     element
 /// </summary>
 /// <param name="original"></param>
 /// <param name="tag">
 ///     Html Tag
 /// </param>
 public static JquerySelectorExtend Next(this JquerySelectorExtend original, HtmlTag tag)
 {
     return(original.Next(s => s.Tag(tag)));
 }
 /// <summary>
 ///     Get all preceding siblings of each element up to but not including the element matched by the action, DOM node, or
 ///     jQuery object.
 /// </summary>
 public static JquerySelectorExtend PrevUntil(this JquerySelectorExtend original)
 {
     return(original.PrevUntil(null));
 }
 /// <summary>
 ///     Get the closest ancestor element that is positioned.
 /// </summary>
 public static JquerySelectorExtend OffsetParent(this JquerySelectorExtend original)
 {
     return(AddTree(original, null, "offsetParent"));
 }
 /// <summary>
 ///     Get the siblings of each element in the set of matched elements, optionally filtered by a action
 /// </summary>
 /// <param name="original"></param>
 /// <param name="action">
 ///     Action expression to match elements against.
 /// </param>
 public static JquerySelectorExtend Siblings(this JquerySelectorExtend original, Func <JquerySelector, JquerySelector> action)
 {
     return(AddTree(original, action, "siblings"));
 }
 /// <summary>
 ///     Add elements to the set of matched elements.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="selector">
 ///     selector to match elements against.
 /// </param>
 public static JquerySelectorExtend Add(this JquerySelectorExtend original, JquerySelectorExtend selector)
 {
     return(AddTree(original, jquerySelector => selector, "add"));
 }
 /// <summary>
 ///     Get the children of each element in the set of matched elements, optionally filtered by a action.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="action">
 ///     action expression to match elements against.
 /// </param>
 public static JquerySelectorExtend Children(this JquerySelectorExtend original, Func <JquerySelector, JquerySelector> action)
 {
     return(AddTree(original, action, "children"));
 }
 /// <summary>
 ///     Get the parent of each element in the current set of tag, optionally filtered by a action.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="class">
 ///     Bootstrap classes
 /// </param>
 public static JquerySelectorExtend Parent(this JquerySelectorExtend original, B @class)
 {
     return(original.Parent(selector => selector.Class(@class)));
 }
 /// <summary>
 ///     Get the siblings of each element in the set of matched elements, optionally filtered by a action
 /// </summary>
 public static JquerySelectorExtend Siblings(this JquerySelectorExtend original)
 {
     return(original.Siblings(null));
 }
 /// <summary>
 ///     Get the parents of each element in the current set of tag, optionally filtered by a action.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="tag">
 ///     Tag
 /// </param>
 public static JquerySelectorExtend Parents(this JquerySelectorExtend original, HtmlTag tag)
 {
     return(original.Parents(selector => selector.Tag(tag)));
 }
 /// <summary>
 ///     Get the children of each element in the set of tag, optionally filtered by a action.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="tag">
 ///     Html tag
 /// </param>
 public static JquerySelectorExtend Children(this JquerySelectorExtend original, HtmlTag tag)
 {
     return(original.Children(selector => selector.Tag(tag)));
 }
 /// <summary>
 ///     Get the parents of each element in the current set of matched elements, optionally filtered by a action.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="action">
 ///     action expression to match elements against.
 /// </param>
 public static JquerySelectorExtend Parents(this JquerySelectorExtend original, Func <JquerySelector, JquerySelector> action)
 {
     return(AddTree(original, action, "parents"));
 }
 /// <summary>
 ///     For each element in the set, get the first element that matches the action by testing the element itself and
 ///     traversing up through its ancestors in the DOM tree.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="action">
 ///     action expression to match elements against.
 /// </param>
 public static JquerySelectorExtend Closest(this JquerySelectorExtend original, Func <JquerySelector, JquerySelector> action)
 {
     return(AddTree(original, action, "closest"));
 }
 /// <summary>
 ///     Get the parents of each element in the current set of matched elements, optionally filtered by a action.
 /// </summary>
 /// <param name="original"></param>
 public static JquerySelectorExtend Parents(this JquerySelectorExtend original)
 {
     return(AddTree(original, null, "parents"));
 }
Exemple #27
0
 public static JquerySelectorExtend Last(this JquerySelectorExtend selector)
 {
     return(selector.Expression(JqueryExpression.Last));
 }
 /// <summary>
 ///     Get all preceding siblings of each element up to but not including the element matched by the action, DOM node, or
 ///     jQuery object.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="action">
 ///     Action expression to match elements against.
 /// </param>
 public static JquerySelectorExtend PrevUntil(this JquerySelectorExtend original, Func <JquerySelector, JquerySelector> action)
 {
     return(AddTree(original, action, "prevUntil"));
 }
Exemple #29
0
 public IIncodingMetaLanguageCallbackInstancesDsl With(JquerySelectorExtend selector)
 {
     meta.Target = selector;
     return(this);
 }
 /// <summary>
 ///     Get the descendants of each element in the current set of tag, filtered by a action, jQuery object, or element
 /// </summary>
 /// <param name="original"></param>
 /// <param name="B">
 ///     Bootstrapp class
 /// </param>
 public static JquerySelectorExtend Find(this JquerySelectorExtend original, B b)
 {
     return(original.Find(selector => selector.Class(b)));
 }