Navigation: CodeStencil > Custom Library > Class Library > Expansion Namespace > Extensions Class > Extensions Methods > Extensions.Li Method |
Create a list item(<li>) belonging to an unordered(<ul> or ordered list (<ol>)
Namespace: ZeraSystems.CodeNanite.Expansion
Assembly: ZeraSystems.CodeNanite.Expansion (in ZeraSystems.CodeNanite.Expansion.dll)
public static string Li(
string str,
string attribute,
string value,
int indent
)
str
Type: String
The string to apply this tag to
attribute
Type: String
The attribute of the list item. e.g. attribute can be "class"
value
Type: String
The value assigned to the attribute. e.g. value can be "dropdown dropdown-cols-2 nav-item"
indent
Type: Int32
The indentation. Default is 0
System.String.
ZeraSystems.CodeNanite.Expansion Namespace