Attribute of the iCommand. It should contain value as well as type

interface iAttribute {
    _hint?: string;
    _tooltip?: string;
    _translation?: string;
    group?: AttrGroup;
    icon?: string;
    label?: string | boolean;
    name: string;
    order?: string;
    shortcut?: string;
    style?: string | object;
    type?: string;
    value?: iAttrVal;
}

Hierarchy (view full)

Properties

_hint?: string
_tooltip?: string
_translation?: string
group?: AttrGroup

optional group for situations where more than a single group is necessary, e.g. for reports where are both select fields and their translations. Partners in communication should habe their own lists of groups

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
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' "}
type?: string

some type of the attribute - has not special meaning and is used as functio needs. Could contain although type of value but on in case that it would be necessary

value?: iAttrVal

attribute value; can be null, in some cases even the fact, that the attribute exists, has its meaning