Internal function that creates the rule for a specific setting or behavior of the modal.
attach_rule(id, behavior, target, value)
ID of the target modal.
What behavior is beging set i. e. setting or attach events.
First argument of the behavior. Usually a target or a setting name.
Second argument of the behavior. usually an action or a setting value.