Метод | Описание | |
---|---|---|
Init ( IRailsEngineContext engineContext, IViewComponentContext componentContext ) : void |
Invoked by the framework.
|
|
Initialize ( ) : void |
Called by the framework once the component instance is initialized
|
|
Render ( ) : void |
Called by the framework so the component can render its content
|
|
SupportsSection ( string name ) : bool |
Implementor should return true only if the
|
Метод | Описание | |
---|---|---|
CancelView ( ) : void |
Cancels the view processing.
|
|
HasSection ( String sectionName ) : bool |
Determines whether the current component declaration on the view has the specified section.
|
|
RenderBody ( ) : void |
Renders the component body.
|
|
RenderBody ( |
Renders the body into the specified TextWriter
|
|
RenderSection ( String sectionName ) : void |
Renders the the specified section
|
|
RenderSection ( String sectionName, |
Renders the the specified section
|
|
RenderSharedView ( String name ) : void |
Specifies the shared view to be processed after the component has finished its processing. (A partial view shared by others views and usually in the root folder of the view directory).
|
|
RenderText ( String content ) : void |
Renders the specified content back to the browser
|
|
RenderView ( String name ) : void |
Specifies the view to be processed after the component has finished its processing.
|
|
RenderView ( String component, String name ) : void |
Specifies the view to be processed after the component has finished its processing.
|
Метод | Описание | |
---|---|---|
BindComponentParameters ( ) : void |
Binds the component parameters.
|
|
BindParameter ( |
||
GetBaseViewPath ( ) : String | ||
GetBaseViewPath ( String componentName ) : String |
protected HasSection ( String sectionName ) : bool | ||
sectionName | String | Name of the section. |
Результат | bool |
public Init ( IRailsEngineContext engineContext, IViewComponentContext componentContext ) : void | ||
engineContext | IRailsEngineContext | Request context |
componentContext | IViewComponentContext | ViewComponent context |
Результат | void |
protected RenderBody ( |
||
writer | The writer. | |
Результат | void |
protected RenderSection ( String sectionName ) : void | ||
sectionName | String | Name of the section. |
Результат | void |
protected RenderSection ( String sectionName, |
||
sectionName | String | Name of the section. |
writer | The writer. | |
Результат | void |
protected RenderSharedView ( String name ) : void | ||
name | String | |
Результат | void |
protected RenderText ( String content ) : void | ||
content | String | The content to render. |
Результат | void |
protected RenderView ( String name ) : void | ||
name | String | |
Результат | void |
protected RenderView ( String component, String name ) : void | ||
component | String | |
name | String | |
Результат | void |
public SupportsSection ( string name ) : bool | ||
name | string | section being added |
Результат | bool |