本文整理汇总了C#中Fluqi.Extension.Helpers.jStringBuilder.AppendTabsFormat方法的典型用法代码示例。如果您正苦于以下问题:C# jStringBuilder.AppendTabsFormat方法的具体用法?C# jStringBuilder.AppendTabsFormat怎么用?C# jStringBuilder.AppendTabsFormat使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Fluqi.Extension.Helpers.jStringBuilder
的用法示例。
在下文中一共展示了jStringBuilder.AppendTabsFormat方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RenderChildren
/// <summary>
/// Renders the list of SelectMenuItems to the string builder.
/// Note: For the SelectMenu this only happens for the root (i.e. this isn't recursive like the Menu control)
/// </summary>
/// <param name="sb">StringBuilder</param>
protected internal void RenderChildren(jStringBuilder sb) {
// Open list/item
if (!_IsRoot)
sb.AppendTabsFormat("<{0}>", CHILD_TAG);
foreach (SelectMenuItemBase mi in this.Children._SelectMenuItems) {
mi.BuildTagHtml(sb);
}
// Close list/item
if (!_IsRoot)
sb.AppendTabsFormatLineIf("</{0}>", CHILD_TAG);
}
示例2: RenderRootCloseItem
private void RenderRootCloseItem(jStringBuilder sb) {
sb.AppendTabsFormat("</{0}>", PARENT_TAG);
}
示例3: RenderOpenItem
private void RenderOpenItem(jStringBuilder sb) {
bool renderCss = this.SelectMenu.Rendering.RenderCSS;
sb.AppendTabsFormat("<{0}", this.Tag);
this.RenderAttributes(sb);
if (this.Selected) {
sb.Append(" selected=\"selected\"");
}
if (!string.IsNullOrEmpty(this.Value)) {
sb.AppendFormat(" value=\"{0}\"", this.Value);
}
sb.Append(">");
sb.Append(this.Title);
}
示例4: RenderChildren
/// <summary>
/// Renders the list of MenuItems to the string builder.
/// </summary>
/// <param name="sb">StringBuilder</param>
protected internal void RenderChildren(jStringBuilder sb) {
// Open list/item
if (!_IsRoot)
sb.AppendTabsFormat("<{0}>", this.Menu.Options.Menus);
foreach (MenuItem mi in this.Children._MenuItems) {
mi.BuildTagHtml(sb);
}
// Close list/item
if (!_IsRoot)
sb.AppendTabsFormatLineIf("</{0}>", this.Menu.Options.Menus);
}
示例5: RenderRootOpenItem
} // BuildTagHtml
private void RenderRootOpenItem(jStringBuilder sb) {
sb.AppendTabsFormat("<{0}", PARENT_TAG);
this.SelectMenu.RenderAttributes(sb);
sb.AppendLineIf(">");
}
示例6: RenderOpenItem
private void RenderOpenItem(jStringBuilder sb) {
bool renderCss = this.Menu.Rendering.RenderCSS;
sb.AppendTabsFormat("<{0}", this.Tag);
if (this.IsDivider) {
if (renderCss)
this.AddCssClass("ui-widget-content ui-menu-divider");
this.RenderAttributes(sb);
sb.Append(">");
return;
}
if (renderCss)
this.AddCssClass("ui-menu-item");
if (this.IsDisabled)
this.AddCssClass("ui-state-disabled");
this.RenderAttributes(sb);
sb.Append(">");
if (!string.IsNullOrEmpty(this.Html))
sb.Append(this.Html);
else {
if (!string.IsNullOrEmpty(this.TargetURL))
sb.AppendFormat("<a href=\"{0}\"", this.TargetURL);
else
sb.AppendFormat("<a href=\"#\"");
if (renderCss)
sb.Append(" class=\"ui-corner-all\"");
sb.Append(">");
if (!string.IsNullOrEmpty(this.Icon)) {
sb.AppendFormat("<span class=\"ui-icon {0}\"></span>", this.Icon);
}
// Title is mandatory when not using the HTML version
sb.Append(this.Title);
sb.Append("</a>");
}
}
示例7: RenderRootCloseItem
private void RenderRootCloseItem(jStringBuilder sb) {
sb.AppendTabsFormat("</{0}>", this.Menu.Options.Menus);
}
示例8: RenderRootOpenItem
} // BuildTagHtml
private void RenderRootOpenItem(jStringBuilder sb) {
sb.AppendTabsFormat("<{0}", this.Menu.Options.Menus);
this.Menu.RenderAttributes(sb);
sb.AppendLineIf(">");
}
示例9: RenderOpenItem
private void RenderOpenItem(jStringBuilder sb) {
sb.AppendTabsFormat("<{0}>", this.Tag);
if (!string.IsNullOrEmpty(this.Html))
sb.Append(this.Html);
else {
if (!string.IsNullOrEmpty(this.TargetURL))
sb.AppendFormat("<a href=\"{0}\">", this.TargetURL);
else
sb.AppendFormat("<a href=\"#\">");
if (!string.IsNullOrEmpty(this.Icon)) {
sb.AppendFormat("<span class=\"ui-icon {0}\"></span>", this.Icon);
}
// Title is mandatory when not using the HTML version
sb.Append(this.Title);
sb.Append("</a>");
}
}
示例10: RenderRootOpenItem
private void RenderRootOpenItem(jStringBuilder sb) {
sb.AppendTabsFormat("<{0}", PARENT_TAG);
if (!string.IsNullOrEmpty(this.Label)) {
sb.AppendFormat(" {0}=\"{1}\"",
LABEL_TAG,
HttpUtility.HtmlAttributeEncode(this.Label)
);
}
if (this.IsDisabled) {
sb.Append(" disabled=\"disabled\"");
}
this.RenderAttributes(sb);
sb.Append(">");
}