Build-in Rules

An important source of built-in rules are specified in WidgetsRules.oss. In this file, you will find many useful rules for data type, decoration, trait, operation, layout, action, and module in OSS. In particular, you will find these nested OSS rules:

CSS
CSS
field {
type=String {
@trait=longtext {
after:zBottom;
editable { component:TextAreaComponent; };
....
}
}

We covered the OSS syntax in more details in a different tutorial, but this is one of the rules:

If selectors [field=any, type=String,
trait=longtext, editable=true]
match the current context values,
then apply the properties
[component:TextAreaComponent]

Since MetaUI is UI library agnostic the build-in rules are layered. We have always WidgetsRules.oss in the bottom the core lib that defines generic rules and we do have WidgetRules.oss (e.g. fiori implementaiton) on top that is specific to a UI library implementation.