C# 클래스 Castle.MonoRail.Framework.Helpers.BehaviourHelper

Exposes the functionality available on the Behaviour js library which Uses css selectors to bind javascript code to DOM elements
Before using it, you must install the scripts. See BehaviourHelper.InstallScripts
상속: AbstractHelper
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono

공개 메소드들

메소드 설명
AddLoadEvent ( String loadFunctionName ) : String

Renders a script block invoking Behaviour.addLoadEvent(loadFunctionName);

EndBehaviourRegister ( ) : String

Renders the end of a script block that associated events to selector rules StartBehaviourRegister Register

InstallScripts ( ) : String

Renders a script tag refering the Behaviour library code.

ReApply ( ) : String

Renders a script block invoking Behaviour.apply()

Register ( String selector, String eventName, String jsFunctionName ) : String

Adds a entry to a registration array. Invoking it with #form, onsubmit and validate will produce '#form' : function(e){ e.onsubmit = validate; }, StartBehaviourRegister EndBehaviourRegister

StartBehaviourRegister ( ) : String

Renders a script block starting the association of events to selector rules Register EndBehaviourRegister

메소드 상세

AddLoadEvent() 공개 메소드

Renders a script block invoking Behaviour.addLoadEvent(loadFunctionName);
public AddLoadEvent ( String loadFunctionName ) : String
loadFunctionName String The name of the js function to be invoked when the body is loaded
리턴 String

EndBehaviourRegister() 공개 메소드

Renders the end of a script block that associated events to selector rules StartBehaviourRegister Register
public EndBehaviourRegister ( ) : String
리턴 String

InstallScripts() 공개 메소드

Renders a script tag refering the Behaviour library code.
public InstallScripts ( ) : String
리턴 String

ReApply() 공개 메소드

Renders a script block invoking Behaviour.apply()
public ReApply ( ) : String
리턴 String

Register() 공개 메소드

Adds a entry to a registration array. Invoking it with #form, onsubmit and validate will produce '#form' : function(e){ e.onsubmit = validate; }, StartBehaviourRegister EndBehaviourRegister
public Register ( String selector, String eventName, String jsFunctionName ) : String
selector String The css selector rule
eventName String The name of the event on the element
jsFunctionName String The function to be invoked in response to the event
리턴 String

StartBehaviourRegister() 공개 메소드

Renders a script block starting the association of events to selector rules Register EndBehaviourRegister
public StartBehaviourRegister ( ) : String
리턴 String