C# Class Automobile.Mobile.Framework.JQuery

Builds JQuery statements
Show file Open project: vistaprint/automobile

Public Methods

Method Description
AttributeSelector ( string attrName, string value ) : string

Formats an attribute selector with no modifier

AttributeSelector ( string attrName, string value, string mod ) : string

Formats an attribute selector

ChildSelector ( string parent ) : string

Selects all immediate children of a parent

ChildSelector ( string parent, string child ) : string

Applies a selector on all children of a parent

ClassSelector ( string className ) : string

Formats a class selector

ContainsSelector ( string text ) : string

Formats a contains selector

Format ( string selector ) : string

Formats the JQuery constructor with a selector

Format ( string selector, string member ) : string

Formats the JQuery constructor with a selector and member

IdSelector ( string id ) : string

Formats an id selector

IndexSelector ( string baseSelector, int index ) : string

Formats an index selector

ParentSelector ( string child ) : string

Formats a selector which is eqivalent to selecting the first parent of the child

Method Details

AttributeSelector() public static method

Formats an attribute selector with no modifier
public static AttributeSelector ( string attrName, string value ) : string
attrName string name of the attribute
value string value of the attribute
return string

AttributeSelector() public static method

Formats an attribute selector
public static AttributeSelector ( string attrName, string value, string mod ) : string
attrName string name of the attribute
value string value of the attribute
mod string Modifier (|, *, ~, $, !, ^)
return string

ChildSelector() public static method

Selects all immediate children of a parent
public static ChildSelector ( string parent ) : string
parent string
return string

ChildSelector() public static method

Applies a selector on all children of a parent
public static ChildSelector ( string parent, string child ) : string
parent string
child string
return string

ClassSelector() public static method

Formats a class selector
public static ClassSelector ( string className ) : string
className string class to select
return string

ContainsSelector() public static method

Formats a contains selector
public static ContainsSelector ( string text ) : string
text string Text too search for
return string

Format() public static method

Formats the JQuery constructor with a selector
public static Format ( string selector ) : string
selector string selector to use
return string

Format() public static method

Formats the JQuery constructor with a selector and member
public static Format ( string selector, string member ) : string
selector string selector to use
member string member to call
return string

IdSelector() public static method

Formats an id selector
public static IdSelector ( string id ) : string
id string The id to select
return string

IndexSelector() public static method

Formats an index selector
public static IndexSelector ( string baseSelector, int index ) : string
baseSelector string base selector to index
index int index
return string

ParentSelector() public static method

Formats a selector which is eqivalent to selecting the first parent of the child
public static ParentSelector ( string child ) : string
child string Child to select the parent of
return string