Jump to: navigation, search

Changes


Traits

121 bytes removed, 27 April
= {{UBIK}} Traits (Client) =
'''{{UBIK}} Traits''' provide the ability to define a dynamic list of lightweight properties for individual instances ({{UBIK}} objects). Unlike traditional {{UBIK}} Properties, which are rigidly bound to a [[MetaClass|MetaClass]], instances of the same entity can contain a different list of traits.
This feature is particularly useful for data that only becomes known at runtime or varies significantly from instance to instance.
* '''Usage:''' When you explicitly want to query ''only'' traits (e.g., read-only display in the UI).
[[Category:Client|Traits]][[Category:MAUI|Traits]][[Category:Mobile|Traits]]
=== 3. Values (Raw Data) ===
----
[[Category:Client|Traits]][[Category:MAUI|Traits]][[Category:Mobile|Traits]]
== Commands (Set & Create Values) ==
=== 4. Creating or overwriting a Trait via SetValueCommand ===
To create traits entirely from scratch (or to explicitly overwrite an existing value), the <code>SetValueCommand</code> of the <code>ContentViewModel</code> should be used. A <code>[[KeyValueList|KeyValueList]]</code> must be passed to this Command.
<syntaxhighlight lang="xml">
296
edits