C# Класс Castle.MonoRail.Framework.Helpers.WizardHelper

Provide useful helpers to be used in a layout view or in the wizards steps views.
Наследование: HtmlHelper
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
HasNextStep ( ) : bool

Returns true if the current wizard flow has a next step.

HasPreviousStep ( ) : bool

Returns true if the current wizard flow has an accessible previous step.

This will only return true if not the first step

LinkToNext ( String linkText ) : String

Creates an anchor tag (link) to the next step. <a href="/page2.rails">linkText</a>

This helper assumes there is a next step. It's advised that you use HasNextStep before calling this

LinkToNext ( String linkText, IDictionary attributes ) : String

Creates an anchor tag (link) to the next step. <a href="/page2.rails">linkText</a>

This helper assumes there is a next step. It's advised that you use HasNextStep before calling this

LinkToNext ( String linkText, object id ) : String

Creates an anchor tag (link) with an id attribute to the next step. <a href="/page2.rails?Id=id">linkText</a>

This helper assumes there is a next step. It's advised that you use HasNextStep before calling this

LinkToNext ( String linkText, object id, IDictionary attributes ) : String

Creates an anchor tag (link) with an id attribute to the next step. <a href="/page2.rails?Id=id">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasNextStep before calling this

LinkToPrevious ( String linkText ) : String

Creates an anchor tag (link) to the previous step. <a href="/page2.rails">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this

LinkToPrevious ( String linkText, IDictionary attributes ) : String

Creates an anchor tag (link) to the previous step. <a href="/page2.rails">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this

LinkToPrevious ( String linkText, object id ) : String

Creates an anchor tag (link) with an id attribute to the previous step. <a href="/page2.rails?Id=id">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this

LinkToPrevious ( String linkText, object id, IDictionary attributes ) : String

Creates an anchor tag (link) with an id attribute to the previous step. <a href="/page2.rails?Id=id">linkText</a>

This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this

LinkToStep ( String linkText, WizardStepPage step ) : String

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>

LinkToStep ( String linkText, WizardStepPage step, object id ) : String

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>

LinkToStep ( String linkText, WizardStepPage step, object id, IDictionary attributes ) : String

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>

Описание методов

HasNextStep() публичный Метод

Returns true if the current wizard flow has a next step.
public HasNextStep ( ) : bool
Результат bool

HasPreviousStep() публичный Метод

Returns true if the current wizard flow has an accessible previous step.
This will only return true if not the first step
public HasPreviousStep ( ) : bool
Результат bool

LinkToNext() публичный Метод

Creates an anchor tag (link) to the next step. <a href="/page2.rails">linkText</a>
This helper assumes there is a next step. It's advised that you use HasNextStep before calling this
public LinkToNext ( String linkText ) : String
linkText String The label for the link
Результат String

LinkToNext() публичный Метод

Creates an anchor tag (link) to the next step. <a href="/page2.rails">linkText</a>
This helper assumes there is a next step. It's advised that you use HasNextStep before calling this
public LinkToNext ( String linkText, IDictionary attributes ) : String
linkText String The label for the link
attributes IDictionary Additional attributes for the a tag.
Результат String

LinkToNext() публичный Метод

Creates an anchor tag (link) with an id attribute to the next step. <a href="/page2.rails?Id=id">linkText</a>
This helper assumes there is a next step. It's advised that you use HasNextStep before calling this
public LinkToNext ( String linkText, object id ) : String
linkText String The label for the link
id object Object to use for the action ID argument.
Результат String

LinkToNext() публичный Метод

Creates an anchor tag (link) with an id attribute to the next step. <a href="/page2.rails?Id=id">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasNextStep before calling this
public LinkToNext ( String linkText, object id, IDictionary attributes ) : String
linkText String The label for the link
id object Object to use for the action ID argument.
attributes IDictionary Additional attributes for the a tag.
Результат String

LinkToPrevious() публичный Метод

Creates an anchor tag (link) to the previous step. <a href="/page2.rails">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this
public LinkToPrevious ( String linkText ) : String
linkText String The label for the link
Результат String

LinkToPrevious() публичный Метод

Creates an anchor tag (link) to the previous step. <a href="/page2.rails">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this
public LinkToPrevious ( String linkText, IDictionary attributes ) : String
linkText String The label for the link
attributes IDictionary Additional attributes for the a tag.
Результат String

LinkToPrevious() публичный Метод

Creates an anchor tag (link) with an id attribute to the previous step. <a href="/page2.rails?Id=id">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this
public LinkToPrevious ( String linkText, object id ) : String
linkText String The label for the link
id object Object to use for the action ID argument.
Результат String

LinkToPrevious() публичный Метод

Creates an anchor tag (link) with an id attribute to the previous step. <a href="/page2.rails?Id=id">linkText</a>
This helper assumes there is a previous step. It's advised that you use HasPreviousStep before calling this
public LinkToPrevious ( String linkText, object id, IDictionary attributes ) : String
linkText String The label for the link
id object Object to use for the action ID argument.
attributes IDictionary Additional attributes for the a tag.
Результат String

LinkToStep() публичный Метод

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>
public LinkToStep ( String linkText, WizardStepPage step ) : String
linkText String The label for the step
step WizardStepPage The WizardStepPage to link to
Результат String

LinkToStep() публичный Метод

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>
public LinkToStep ( String linkText, WizardStepPage step, object id ) : String
linkText String The label for the step
step WizardStepPage The WizardStepPage to link to
id object Object to use for the action ID argument.
Результат String

LinkToStep() публичный Метод

Creates an anchor tag (link) to the specified step. <a href="/page2.rails">linkText</a>
public LinkToStep ( String linkText, WizardStepPage step, object id, IDictionary attributes ) : String
linkText String The label for the step
step WizardStepPage The WizardStepPage to link to
id object Object to use for the action ID argument.
attributes IDictionary Additional attributes for the a tag.
Результат String