Пример #1
0
        /// <summary>
        ///     Selects elements which contain at least one element that matches the specified <paramref name="hasAction" />
        /// </summary>
        public static JquerySelectorExtend Has(this JquerySelectorExtend selector, Func <JquerySelector, JquerySelector> hasAction)
        {
            var hasSelector = Selector.Jquery;

            hasAction(hasSelector);
            return(selector.Custom(":has({0})".F(hasSelector.ToSelector())));
        }
Пример #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)));
 }