Komponent dokumentation

Denne side indeholder et overblik + eksempler på all tilgængelige komponenter på den tilhørende løsning. Koden til komponenterne findes i /Templates/Designs/Rapido/Components.

Sådan overskriver du eksisterende komponenter
Sådan skriver dine egne Komponenter
Detaljeret Komponent dokumentation
Detaljeret Blocks dokumentation


Helper method: RenderButton

Indstillinger
ConfirmText System.String
ConfirmTitle System.String
ButtonType
Link System.String
Target
IconPosition
Id System.String
Title System.String
AltText System.String
OnClick System.String
CssClass System.String
Disabled System.Boolean
Icon
Component {
Prefix
Name
Color
CssClass
LabelPosition
Label
HelperName
}
Name System.String
Href System.String
ButtonLayout
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Button { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Button { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderCheckboxField

Der er sket en fejl
Indstillinger
Checked System.Boolean
Type
Name System.String
Id System.String
Label System.String
HelpText System.String
Link
Component {
Target
Rel
Download
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
OnChange System.String
OnClick System.String
WrapperCssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new CheckboxField { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new CheckboxField { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderCheckboxListField

Der er sket en fejl
Indstillinger
Options
Component {
Capacity
Count
Item
}
Name System.String
Id System.String
Label System.String
HelpText System.String
Link
Component {
Target
Rel
Download
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
OnChange System.String
OnClick System.String
WrapperCssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new CheckboxListField { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new CheckboxListField { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderContentModule

Tilføj dette modul som tekst streng
Indstillinger
Content System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ContentModule { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ContentModule { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderDashboard

Indstillinger
WidgetsBaseBackgroundColor System.String
CssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Dashboard { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Dashboard { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderDashboard

120
Orders
1105
Count
5
Quotes
15
Days
Indstillinger
WidgetsBaseBackgroundColor System.String
CssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Dashboard { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Dashboard { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderDashboardWidgetCounter

167
Products
Indstillinger
Count System.Int32
Icon
Component {
Prefix
Name
Color
CssClass
LabelPosition
Label
HelperName
}
Title System.String
BackgroundColor System.String
CssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new DashboardWidgetCounter { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new DashboardWidgetCounter { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderDashboardWidgetLink

Indstillinger
Link System.String
Icon
Component {
Prefix
Name
Color
CssClass
LabelPosition
Label
HelperName
}
Title System.String
BackgroundColor System.String
CssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new DashboardWidgetLink { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new DashboardWidgetLink { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderFileField

Indstillinger
ChooseFileText System.String
NoFilesChosenText System.String
UploadButton
Component {
ConfirmText
ConfirmTitle
ButtonType
Link
Target
IconPosition
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Multiple System.Boolean
Name System.String
Id System.String
Label System.String
HelpText System.String
Link
Component {
Target
Rel
Download
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
OnChange System.String
OnClick System.String
WrapperCssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new FileField { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new FileField { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderForm

Indstillinger
Name System.String
Method
Action System.String
Enctype
OnSubmit System.String
CssClass System.String
FormStartMarkup System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Form { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Form { OPTIONAL_settings })
Markup resultat

Helper method: RenderHeading

Min nye overskrift

Indstillinger
Title System.String
Level System.Int32
Color System.String
Link System.String
CssClass System.String
Icon
Component {
Prefix
Name
Color
CssClass
LabelPosition
Label
HelperName
}
IconPosition
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Heading { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Heading { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderHiddenField

Indstillinger
Value System.String
Id System.String
Name System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
Label System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new HiddenField { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new HiddenField { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderIcon

Icon label
Indstillinger
Prefix System.String
Name System.String
Color System.String
CssClass System.String
LabelPosition
Label System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Icon { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Icon { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderImage

Billedebeskrivelse
Indstillinger
Path
Title System.String
Id System.String
Link System.String
OnClick System.String
Caption System.String
CssClass System.String
Style
ImageDefault
Component {
Width
Height
Crop
DoNotUpscale
FillCanvas
Compression
Quality
Format
BackgroundColor
}
ImageSmall
Component {
Width
Height
Crop
DoNotUpscale
FillCanvas
Compression
Quality
Format
BackgroundColor
}
ImageMedium
Component {
Width
Height
Crop
DoNotUpscale
FillCanvas
Compression
Quality
Format
BackgroundColor
}
DisableImageEngine System.Boolean
DisableLazyLoad System.Boolean
FilterPrimary
FilterSecondary
FilterColor System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Image { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Image { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderLink

Indstillinger
Target
Rel
Download System.Boolean
Id System.String
Title System.String
AltText System.String
OnClick System.String
CssClass System.String
Disabled System.Boolean
Icon
Component {
Prefix
Name
Color
CssClass
LabelPosition
Label
HelperName
}
Name System.String
Href System.String
ButtonLayout
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Link { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Link { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderModal

Indstillinger
Id System.String
Heading
Component {
Title
Level
Color
Link
CssClass
Icon
IconPosition
HelperName
}
Width
Height
BodyText System.String
OnClose System.String
BodyTemplate
DisableDarkOverlay System.Boolean
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Modal { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Modal { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderNotificationMessage

Der er sket en fejl
Indstillinger
Id System.String
Message System.String
MessageType
MessageLayout
CssClass System.String
Icon
Component {
Prefix
Name
Color
CssClass
LabelPosition
Label
HelperName
}
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new NotificationMessage { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new NotificationMessage { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderNumberField

Indstillinger
Min System.Nullable`1[System.Int32]
Max System.Nullable`1[System.Int32]
Step System.Int32
ReadOnly System.Boolean
OnKeyUp System.String
OnInput System.String
OnFocus System.String
ActionButton
Component {
ConfirmText
ConfirmTitle
ButtonType
Link
Target
IconPosition
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value
Name System.String
Id System.String
Label System.String
HelpText System.String
Link
Component {
Target
Rel
Download
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
OnChange System.String
OnClick System.String
WrapperCssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new NumberField { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new NumberField { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderRating

Indstillinger
Score System.Int32
OutOf System.Int32
Type
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Rating { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Rating { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderSelectField

Der er sket en fejl
Indstillinger
Default
Component {
Id
Checked
Disabled
Value
Label
ExtraAttributes
Type
Name
OnChange
OnClick
ErrorMessage
HelperName
}
Options
Component {
Capacity
Count
Item
}
ActionButton
Component {
ConfirmText
ConfirmTitle
ButtonType
Link
Target
IconPosition
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Name System.String
Id System.String
Label System.String
HelpText System.String
Link
Component {
Target
Rel
Download
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
OnChange System.String
OnClick System.String
WrapperCssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new SelectField { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new SelectField { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderSticker

On sale
Indstillinger
Title System.String
Color System.String
BackgroundColor System.String
Style
Size
CssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Sticker { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Sticker { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderStickersCollection

On sale
New
Black friday
Indstillinger
Stickers
Component {
Capacity
Count
Item
}
CssClass System.String
Position
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new StickersCollection { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new StickersCollection { OPTIONAL_settings })
Markup resultat

Helper method: RenderTable

ColorBlue
SizeM
Indstillinger
Id System.String
CssClass System.String
Design
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Table { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Table { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderTable

MeatProteins (g)Fats (g)Carbs (g)
Chicken20,88,80,6
Pork19,47,10
Beef18,912,40
CustomCellCustomCell2
string1string2
1234
Indstillinger
Id System.String
CssClass System.String
Design
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Table { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Table { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderText

Min tekst
Indstillinger
Content System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new Text { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new Text { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderTextareaField

Der er sket en fejl
Indstillinger
Placeholder System.String
MaxLength System.Int32
Rows System.Int32
ReadOnly System.Boolean
OnKeyUp System.String
OnInput System.String
OnFocus System.String
Name System.String
Id System.String
Label System.String
HelpText System.String
Link
Component {
Target
Rel
Download
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
OnChange System.String
OnClick System.String
WrapperCssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Code preview er ikke tilgængeligt for dette komponent

Helper method: RenderTextField

Der er sket en fejl
Indstillinger
Type
Placeholder System.String
MaxLength System.Int32
ReadOnly System.Boolean
OnKeyUp System.String
OnInput System.String
OnFocus System.String
ActionButton
Component {
ConfirmText
ConfirmTitle
ButtonType
Link
Target
IconPosition
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Name System.String
Id System.String
Label System.String
HelpText System.String
Link
Component {
Target
Rel
Download
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
OnChange System.String
OnClick System.String
WrapperCssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new TextField { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new TextField { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderAddToCart

Indstillinger
WrapperCssClass System.String
Disabled System.Boolean
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new AddToCart { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new AddToCart { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderAddToCartButton

Indstillinger
HideTitle System.Boolean
ProductId System.String
VariantId System.String
UnitId System.String
BuyForPoints System.Boolean
ProductInfo System.String
QuantitySelectorId System.String
ConfirmText System.String
ConfirmTitle System.String
ButtonType
Link System.String
Target
IconPosition
Id System.String
Title System.String
AltText System.String
OnClick System.String
CssClass System.String
Disabled System.Boolean
Icon
Component {
Prefix
Name
Color
CssClass
LabelPosition
Label
HelperName
}
Name System.String
Href System.String
ButtonLayout
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new AddToCartButton { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new AddToCartButton { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderQuantitySelector

Indstillinger
Min
Max
Step
Min System.Nullable`1[System.Int32]
Max System.Nullable`1[System.Int32]
Step System.Int32
ReadOnly System.Boolean
OnKeyUp System.String
OnInput System.String
OnFocus System.String
ActionButton
Component {
ConfirmText
ConfirmTitle
ButtonType
Link
Target
IconPosition
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value
Name System.String
Id System.String
Label System.String
HelpText System.String
Link
Component {
Target
Rel
Download
Id
Title
AltText
OnClick
CssClass
Disabled
Icon
Name
Href
ButtonLayout
ExtraAttributes
HelperName
}
Value System.String
Disabled System.Boolean
Required System.Boolean
ErrorMessage System.String
CssClass System.String
OnChange System.String
OnClick System.String
WrapperCssClass System.String
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new QuantitySelector { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new QuantitySelector { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderUnitSelector

Indstillinger
Id System.String
OptionsContent System.String
SelectedOption System.String
Disabled System.Boolean
CssClass System.String
Options
Component {
Capacity
Count
Item
}
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new UnitSelector { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new UnitSelector { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderVariantMatrix

Blue
Red
 
0
Indstillinger
ProductId System.String
Description System.String
EnableCounters System.Boolean
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new VariantMatrix { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new VariantMatrix { OPTIONAL_settings })
Markup resultat

Helper method: RenderArticleAuthorAndDate

Skrevet af Me den 27-03-1984
Indstillinger
Author System.String
Date System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleAuthorAndDate { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleAuthorAndDate { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleBanner

A perfect banner

Indstillinger
UseFilters System.Boolean
Layout
Image
Component {
Path
Title
Id
Link
OnClick
Caption
CssClass
Style
ImageDefault
ImageSmall
ImageMedium
DisableImageEngine
DisableLazyLoad
FilterPrimary
FilterSecondary
FilterColor
ExtraAttributes
HelperName
}
Heading System.String
Subheading System.String
Author System.String
Date System.String
Category System.String
CategoryColor System.String
Link System.String
LinkText System.String
TextLayout
TextColor System.String
ButtonLayout
RatingScore System.Int32
RatingOutOf System.Int32
ExternalParagraphId System.Int32
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleBanner { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleBanner { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleBodyRow

Indstillinger
TopLayout System.String
TextLayout System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleBodyRow { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleBodyRow { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleHeader

Header clean layout

This is new
Indstillinger
Layout
Image
Component {
Path
Title
Id
Link
OnClick
Caption
CssClass
Style
ImageDefault
ImageSmall
ImageMedium
DisableImageEngine
DisableLazyLoad
FilterPrimary
FilterSecondary
FilterColor
ExtraAttributes
HelperName
}
Heading System.String
Subheading System.String
Author System.String
Date System.String
Category System.String
CategoryColor System.String
Link System.String
LinkText System.String
TextLayout
TextColor System.String
ButtonLayout
RatingScore System.Int32
RatingOutOf System.Int32
ExternalParagraphId System.Int32
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleHeader { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleHeader { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleImage

ComponentImage This is the caption for the image
Indstillinger
Image
Component {
Path
Title
Id
Link
OnClick
Caption
CssClass
Style
ImageDefault
ImageSmall
ImageMedium
DisableImageEngine
DisableLazyLoad
FilterPrimary
FilterSecondary
FilterColor
ExtraAttributes
HelperName
}
EnableFullImage System.Boolean
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleImage { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleImage { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleLink

Indstillinger
ConfirmText System.String
ConfirmTitle System.String
ButtonType
Link System.String
Target
IconPosition
Id System.String
Title System.String
AltText System.String
OnClick System.String
CssClass System.String
Disabled System.Boolean
Icon
Component {
Prefix
Name
Color
CssClass
LabelPosition
Label
HelperName
}
Name System.String
Href System.String
ButtonLayout
ExtraAttributes System.Collections.Generic.Dictionary`2[System.String,System.String]
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleLink { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleLink { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleListFilter

Indstillinger
Options
Label System.String
SystemName System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleListFilter { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleListFilter { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleListSearch

Indstillinger
Title System.String
SearchParameter System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleListSearch { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleListSearch { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleMenu

Indstillinger
Title System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleMenu { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleMenu { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleMenuItem

Indstillinger
Title System.String
Link System.String
Href System.String
OnClick System.String
Icon System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleMenuItem { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleMenuItem { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleQuote

The user
I would like to quote that this is so.
- The user
Indstillinger
Image
Component {
Path
Title
Id
Link
OnClick
Caption
CssClass
Style
ImageDefault
ImageSmall
ImageMedium
DisableImageEngine
DisableLazyLoad
FilterPrimary
FilterSecondary
FilterColor
ExtraAttributes
HelperName
}
Text System.String
Author System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleQuote { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleQuote { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleSubHeader

My sub header

Indstillinger
Title System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleSubHeader { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleSubHeader { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleSummary

Dette er et resumé
Indstillinger
Text System.String
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleSummary { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleSummary { OPTIONAL_settings })
Implementerings eksempel

Markup resultat

Helper method: RenderArticleText

Normal body text...
Indstillinger
Text System.String
EnableLargeText System.Boolean
HelperName System.String
Simpelt brug
Block myBlock = new Block
{
   Id = "MyBlock",
   SortId = 10,
   Component = new ArticleText { OPTIONAL_settings }
};
myPage.Add("MyContainer", myBlock);

Eller

@Render(new ArticleText { OPTIONAL_settings })
Implementerings eksempel

Markup resultat