示例#1
0
 public IIncodingMetaLanguageCallbackInstancesDsl With(JquerySelector selector)
 {
     this.meta.target = selector.ToString();
     return(this);
 }
示例#2
0
 internal JquerySelectorExtend(JquerySelector selector)
     : base(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"));
 }
 /// <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));
 }
示例#5
0
 internal JquerySelector(JquerySelector selector)
     : base((Selector)selector)
 {
 }
 /// <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));
 }
示例#7
0
 public IConditionalBinaryBuilder FormIsValid(JquerySelector jquerySelector)
 {
     string code = JavaScriptCodeTemplate.Conditional_Is_Valid_Form.F(jquerySelector);
     Registry(new ConditionalEval(code, this.and));
     return this;
 }