1
0
mirror of https://github.com/1C-Company/v8-code-style.git synced 2025-12-02 17:13:44 +02:00
Files
v8-code-style/bundles/com.e1c.v8codestyle.bsl/markdown/module-attachable-event-handler-name.md
2022-10-21 18:42:15 +03:00

724 B

Attachable event handler name

Programmatically added event handler name should match pattern: Attachable_ prefix

Noncompliant Code Example

// Parameters:
//  Item - FormField
Procedure Incorrect(Item)
	
	Item.SetAction("OnChange", "IncorrectOnChange");
	
EndProcedure

Compliant Solution

// Parameters:
//  Item - FormField
Procedure Correct(Item)
	
	Item.SetAction("OnChange", "Attachable_CorrectOnChange");
	
EndProcedure

See