Interface ObjectResponsibility

Responsibility creates right that user should have to make operations that are linked with the resposibiity If operation is linked with responsiblity, then user can make operation only for those objects to wich has the responsiblity

interface ObjectResponsibility {
    _hint?: string;
    _tooltip?: string;
    _translation?: string;
    cardinality: Cardinality[];
    conditions: ObjectCondition[];
    icon?: string;
    label?: string | boolean;
    name: string;
    operNames: string[];
    order?: string;
    shortcut?: string;
    style?: string | object;
}

Hierarchy (view full)

Properties

_hint?: string
_tooltip?: string
_translation?: string
cardinality: Cardinality[]
conditions: ObjectCondition[]
icon?: string
label?: string | boolean

Optinonal commands about label false - no label is printed string - string to translate (used instead of fieldname) true - does not affects functionality (useless) evaluaated - (=obj.enumVal('x')) --- should return translated value, result is not translated. Remember that obj is empty (nevertheless defined) for new object

name: string
operNames: string[]
order?: string

optional element order

shortcut?: string

Optional shortcut

style?: string | object

className (in case thet style is string) or list of styles using htmlelements.style JS attributes

Example

style='box--dataImportant'  box--dataImportant should be defined class in the css styles

Example

syle={"maxWidth":"20em"}    set up the maxWidth style attribute for the box

Example

styl={"border":"=obj.status=='AC'?'solid':'none' "}