No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
{| class="wikitable" | {| class="wikitable" | ||
|ActionName | |'''ActionName''' | ||
|Presentation value | |'''Presentation value''' | ||
|Presentation result | |'''Presentation result''' | ||
|- | |- | ||
|Somename | |Somename |
Revision as of 06:24, 5 June 2023
When declaring Actions in MDriven you have the option of giving a name (required) and a Presentation (defaults to <Name>).
The reason for the two different properties are that the ActionName must be globally unique for all actions – it is used for presentation of the action and as reference name of the action. The presentation is however the text we use when presenting the action in a contextmenu or in the MDriven Prototype leftside action column.
Since the Presentation often resembles the Name we have introduced the following shorthand/activecontent:
ActionName | Presentation value | Presentation result |
Somename | <Name> | Somename |
SomeName | <Name> | Some Name |
SomeName | Extra1 <Name>
Extra2 |
Extra1 Some Name Extra 2 |
SomeName | <AsString> | “DefaultStringRep of context object” |
SomeName | <Name>
<AsString> |
Some Name “DefaultStringRep of context object” |
SomeName | <AsString:Attribute1> | “Value of attribute1 of context object” |
SomeName | Extra1 <Name>
Extra2 <AsString:Attribute1> Extra3 |
Extra1 Some Name Extra 2 “Value of attribute1 of context object” Extra 3 |
The context object is of course the object that the actions is acting on. So it is intended to be used with “Class actions”.