Geta.EPi.Extensions : API Documentation

Type XFormHelper

Namespace Geta.EPi.Extensions.Helpers

Helper methods for working with EPiServer XForms.

Methods

Fields

Public static methods

HtmlFragment CleanupXFormHtmlMarkup(HtmlFragment htmlFragment, bool addClassAttribute)

Replaces XForm HTML tables with more semantic markup.
Parameters
HtmlFragment htmlFragment
HtmlFragment of XForm
bool addClassAttribute
Will add individual HTML class for each element. For matching HTML classes see TableTagCssClasses
Returns
HtmlFragment
Modified HtmlFragment

Public fields

Dictionary<string, string> TableTagCssClasses

Dictionary of TABLE tags and matching HTML classes for markup replacements when cleaning XForm using CleanupXFormHtmlMarkup method with parameter addClassAttribute = true
return Dictionary<string, string>