Class RuleChangeEventArgs
Provides event arguments for the RuleChanged event.
Inheritance
Namespace: Syncfusion.Blazor.QueryBuilder
Assembly: Syncfusion.Blazor.dll
Syntax
public class RuleChangeEventArgs : Object
Remarks
This class encapsulates the state of a rule before and after a change, allowing for detailed tracking of modifications.
Constructors
RuleChangeEventArgs()
Declaration
public RuleChangeEventArgs()
Properties
Name
Gets or sets the name of the event.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that represents the name of the event. |
Remarks
This identifies the specific event that was triggered, such as "rule-changed."
PreviousRule
Gets or sets the rule's state before the change occurred.
Declaration
public RuleModel PreviousRule { get; set; }
Property Value
Type | Description |
---|---|
RuleModel | A RuleModel object representing the previous state of the rule. |
Remarks
This property provides a snapshot of the rule's properties before the modification, which can be useful for comparison or logging.
Rule
Gets or sets the current state of the rule after the change.
Declaration
public RuleModel Rule { get; set; }
Property Value
Type | Description |
---|---|
RuleModel | A RuleModel object representing the current state of the rule. |
Remarks
This property contains the most up-to-date information for the rule that has been modified.
RuleId
Gets or sets the unique identifier of the rule that was changed.
Declaration
public string RuleId { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that represents the unique ID of the rule. |
Remarks
Use this ID to uniquely identify and manage the rule within the query builder.
Type
Gets or sets the type of the rule, such as "rule" or "group."
Declaration
public string Type { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string specifying the rule's type. |
Remarks
This property helps in distinguishing between individual rules and rule groups when handling events.