# new RulesDialog(props) → {React.PureComponent}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
props |
Object | Any other props will be forwarded to the |
|
item |
Object | The selected rule with it's characteristics. |
|
item.id |
number | The id of a selected rule. |
|
item.name |
Object | The name of a selected rule. |
|
item.name.decisions |
Array.<Array.<Object>> | The decision part of a rule |
|
item.name.decisions[][].primary |
number | string | The part of the decision coloured with primary colour. |
|
item.name.decisions[][].secondary |
number | string | The part of the decision coloured with secondary colour. |
|
item.name.decisions[][].withBraces |
boolean | If |
|
item.name.decisions[][].toString |
function | Returns decision as a single string. |
|
item.name.conditions |
Array.<Object> | The condition part of a rule. |
|
item.name.conditions[].primary |
number | string | The part of the condition coloured with primary colour. |
|
item.name.conditions[].secondary |
number | string | The part of the condition coloured with secondary colour. |
|
item.name.conditions[].toString |
function | Returns condition as a single string. |
|
item.name.decisionsToString |
function | Returns decisions as a single string concatenated with a logical AND and OR. |
|
item.name.conditionsToString |
function | Returns conditions as a single string concatenated with a logical AND. |
|
item.name.toString |
function | Returns concatenated output of |
|
item.traits |
Object | The characteristics of a selected rule in a key-value form. |
|
item.traits.Type |
string |
<optional> |
|
item.toFilter |
function | Returns rule in an easy to filter form. |
|
item.toSort |
function | Returns rule in an easy to sort form. |
|
objectGlobalName |
string | The global visible object name used by all tabs as reference. |
|
onClose |
function | Callback fired when the component requests to be closed. |
|
onSnackbarOpen |
function | Callback fired when the component requests to display an error. |
|
open |
boolean | If |
|
projectId |
string | The identifier of a selected project. |
|
serverBase |
string | The host in the URL of an API call. |