Ext.NET  5.3.0
.NET Component Framework for Enterprise Level Apps
Ext.Net.DomHelper Class Reference

More...

Static Public Member Functions

static Element Append (Element el, DomObject o)
 Creates new DOM element(s) and appends them to el. More...
 
static Element Append (Element el, string o)
 Creates new DOM element(s) and appends them to el. More...
 
static void ApplyStyles (Element el, Dictionary< string, string > styles)
 Applies a style specification to an element. More...
 
static Element InsertAfter (Element el, DomObject o)
 Creates new DOM element(s) and inserts them after el. More...
 
static Element InsertAfter (Element el, string o)
 Creates new DOM element(s) and inserts them after el. More...
 
static Element InsertBefore (Element el, DomObject o)
 Creates new DOM element(s) and inserts them before el. More...
 
static Element InsertBefore (Element el, string o)
 Creates new DOM element(s) and inserts them before el. More...
 
static Element InsertFirst (Element el, DomObject o)
 Creates new DOM element(s) and inserts them as the first child of el. More...
 
static Element InsertFirst (Element el, string o)
 Creates new DOM element(s) and inserts them as the first child of el. More...
 
static Element InsertHtml (InsertPosition where, Element el, string html)
 Inserts an HTML fragment into the DOM. More...
 
static Element Overwrite (Element el, DomObject o)
 Creates new DOM element(s) and overwrites the contents of el with them. More...
 
static Element Overwrite (Element el, string o)
 Creates new DOM element(s) and overwrites the contents of el with them. More...
 

Detailed Description

Member Function Documentation

◆ Append() [1/2]

static Element Ext.Net.DomHelper.Append ( Element  el,
DomObject  o 
)
inlinestatic

Creates new DOM element(s) and appends them to el.

Parameters
elThe context element
oThe DOM object spec (and children) or raw HTML blob

◆ Append() [2/2]

static Element Ext.Net.DomHelper.Append ( Element  el,
string  o 
)
inlinestatic

Creates new DOM element(s) and appends them to el.

Parameters
elThe context element
oRaw HTML blob

◆ ApplyStyles()

static void Ext.Net.DomHelper.ApplyStyles ( Element  el,
Dictionary< string, string >  styles 
)
inlinestatic

Applies a style specification to an element.

Parameters
elThe element to apply styles to
stylesA style specification.

◆ InsertAfter() [1/2]

static Element Ext.Net.DomHelper.InsertAfter ( Element  el,
DomObject  o 
)
inlinestatic

Creates new DOM element(s) and inserts them after el.

Parameters
elThe context element
oThe DOM object spec (and children)

◆ InsertAfter() [2/2]

static Element Ext.Net.DomHelper.InsertAfter ( Element  el,
string  o 
)
inlinestatic

Creates new DOM element(s) and inserts them after el.

Parameters
elThe context element
oThe DOM object spec (and children)

◆ InsertBefore() [1/2]

static Element Ext.Net.DomHelper.InsertBefore ( Element  el,
DomObject  o 
)
inlinestatic

Creates new DOM element(s) and inserts them before el.

Parameters
elThe context element
oThe DOM object spec (and children)

◆ InsertBefore() [2/2]

static Element Ext.Net.DomHelper.InsertBefore ( Element  el,
string  o 
)
inlinestatic

Creates new DOM element(s) and inserts them before el.

Parameters
elThe context element
oThe DOM object spec (and children)

◆ InsertFirst() [1/2]

static Element Ext.Net.DomHelper.InsertFirst ( Element  el,
DomObject  o 
)
inlinestatic

Creates new DOM element(s) and inserts them as the first child of el.

Parameters
elThe context element
oThe DOM object spec (and children)

◆ InsertFirst() [2/2]

static Element Ext.Net.DomHelper.InsertFirst ( Element  el,
string  o 
)
inlinestatic

Creates new DOM element(s) and inserts them as the first child of el.

Parameters
elThe context element
oThe DOM object spec (and children)

◆ InsertHtml()

static Element Ext.Net.DomHelper.InsertHtml ( InsertPosition  where,
Element  el,
string  html 
)
inlinestatic

Inserts an HTML fragment into the DOM.

Parameters
whereWhere to insert the html in relation to el - BeforeBegin, AfterBegin, BeforeEnd, AfterEnd.
elThe context element
htmlThe HTML fragmenet

◆ Overwrite() [1/2]

static Element Ext.Net.DomHelper.Overwrite ( Element  el,
DomObject  o 
)
inlinestatic

Creates new DOM element(s) and overwrites the contents of el with them.

Parameters
elThe context element
oThe DOM object spec (and children)

◆ Overwrite() [2/2]

static Element Ext.Net.DomHelper.Overwrite ( Element  el,
string  o 
)
inlinestatic

Creates new DOM element(s) and overwrites the contents of el with them.

Parameters
elThe context element
oThe DOM object spec (and children)

The documentation for this class was generated from the following file: