Model Structure - property


Catalog:


Example:


property introduce

As the property of entity model, has 2 functions

In the model group, the value of name and relation are shown.

In the template, you can get the model by relation.

For example, in the UI, we need a new title property.

Add a property title, it's value is Book.

property add, update, delete and init scheme

add

Add a property title, it's value is Book.

update

Double click or click enter to edit.

Click has more options.

delete

Click can delete.

init scheme

property usage

In the task, select model group or model.

In the template, select model group or model group + model(contexnt assist)

If select model group, set relation, otherwise do not need set.

name, relation, from, type can be get directly.

Result

Mouse hover or select can view the value.

New property, using the property("name") method.

Result

Result

Tip: Mouse hover or select can view the value.

Result

Tip: Mouse hover or select can view the value.

Map:Use for tag to loop, loop object has key and value.

e value:#{"key1":"value1","key2":"value2"}

Result

Tip: Loop object has key and value.