Description of a single box in the object detail

interface iViewBox {
    _hint?: string;
    _readonly?: boolean;
    _right?: boolean;
    _tooltip?: string;
    _translation?: string;
    attributes?: iAttributes;
    buttons?: string[];
    collapse?: boolean;
    editable?: string;
    help?: string;
    icon?: string;
    infoText?: string;
    label?: string | boolean;
    name: string;
    no?: string;
    order?: string;
    readonly?: string;
    right?: string;
    shortcut?: string;
    showTitle?: boolean;
    singleItem?: boolean;
    style?: string | object;
    tab?: string;
    type?: "userAttributes";
    uright?: string;
    view?: string | detailAttr;
    visible?: string;
    where?: string;
}

Hierarchy (view full)

Properties

_hint?: string
_readonly?: boolean
_right?: boolean
_tooltip?: string
_translation?: string
attributes?: iAttributes

Optional attributes placed to the box Attributes described in the box does not have box fiels!

buttons?: string[]
collapse?: boolean

Sign if box is collapsible:

  • parameter not defined: box has no collapse option
  • false box has collapse option and is open
  • true box has collapse option and is collapsed when detail is open

Notes:

  • collapse button should have name. if name is not allowed, collapse is ignored
editable?: string
help?: string

Optional help file for box. Only name of the file withouth md extension is accepted. (neither bool value nor the complete path.)

icon?: string
infoText?: string

Optional text visible in the title of the collapsed box - Always evaluated command Use the info text to show basic information if something inportant in is in th collapsed box

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
no?: string
order?: string

optional element order

readonly?: string
right?: string

Right to see the content - evaluated only for existing objects not for new! When both visible and right is defined, visible is evaluated at first and then also right and both should return true

shortcut?: string

Optional shortcut

showTitle?: boolean
singleItem?: boolean
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' "}
tab?: string
type?: "userAttributes"

optional type allow definition of spectial box types. By default boxes have not type

uright?: string
view?: string | detailAttr

boxes where is only a single view can contain view attributes description as a part of the view

WARNING: Currently does not support any attributes that should be processed by server - data attributes!

visible?: string

Condition, when visible and when not; evaluated both for new object and existing objects

where?: string

Optional where conditions for view - works of list views and later may be also cliplists