Ejemplo n.º 1
0
 /// <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>
 public static JquerySelectorExtend Closest(this JquerySelectorExtend original)
 {
     return(original.Closest(null));
 }
 /// <summary>
 ///     For each element in the set, get the first element that expression the action by testing the element itself and
 ///     traversing up through its ancestors in the DOM tree.
 /// </summary>
 /// <param name="original">
 /// </param>
 /// <param name="expression">
 ///     Jquery expression
 /// </param>
 public static JquerySelectorExtend Closest(this JquerySelectorExtend original, JqueryExpression expression)
 {
     return(original.Closest(selector => selector.Expression(expression)));
 }
 /// <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="classes">
 ///     Bootstrapp classes
 /// </param>
 public static JquerySelectorExtend Closest(this JquerySelectorExtend original, B classes)
 {
     return(original.Closest(selector => selector.Class(classes)));
 }
 /// <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));
 }
 /// <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="tag">
 ///     Html tag
 /// </param>
 public static JquerySelectorExtend Closest(this JquerySelectorExtend original, HtmlTag tag)
 {
     return(original.Closest(selector => selector.Tag(tag)));
 }