Exemplo n.º 1
0
 /// <summary>
 ///     Check the current matched set of elements against a selector, element and return true
 /// </summary>
 public static JquerySelectorExtend Is(this JquerySelectorExtend selector, JquerySelector isSelector)
 {
     return(selector.Method("is", isSelector));
 }
Exemplo n.º 2
0
 internal JquerySelector(JquerySelector selector)
     : base((Selector)selector)
 {
 }
 /// <summary>
 ///     Reduce the set of matched elements to those that match the action or pass the function's test.
 /// </summary>
 /// <param name="original"></param>
 /// <param name="selector">
 ///     selector to match elements against.
 /// </param>
 public static JquerySelectorExtend Filter(this JquerySelectorExtend original, JquerySelector selector)
 {
     return(AddTree(original, jquerySelector => selector, "filter"));
 }
 internal JquerySelectorExtend(JquerySelector selector)
     : base(selector)
 {
 }
 /// <summary>
 ///     For each element in the set, get the first element that tag the action by testing the element itself and traversing
 ///     up through its ancestors in the DOM tree.
 /// </summary>
 /// <param name="original">
 /// </param>
 /// <param name="selector">
 ///     Selector
 /// </param>
 public static JquerySelectorExtend Closest(this JquerySelectorExtend original, JquerySelector selector)
 {
     return(original.Closest(r => selector));
 }