altinn-studio icon indicating copy to clipboard operation
altinn-studio copied to clipboard

How do we display expression properties

Open nkylstad opened this issue 1 year ago • 2 comments

Description

A lot of properties can now be defined as either a static value or as an expression. F.ex:

  • required and readOnly

These can now be set as true/false in our config view, but they can also be configured as an expression. If a boolean/expression value is set as an expression, the config will be disabled in the config panel, and inform the user in the help text

Screenshot 2024-02-15 at 20 20 49 Screenshot 2024-02-15 at 20 24 45

In addition, we currently only support boolean/expression type values. We should support all property types that can be either a static value or expression (string, number, etc).

When the user configures a component for the first time, should they be given a choice when it comes to this type of component? Or a link that takes them to the expression editor for that property? Should we integrate the expression editor directly with the property?

nkylstad avatar Feb 15 '24 19:02 nkylstad

@altinnadmin kan du gi meg tilgang til denne tavla, så jeg kan jobbe med denne saken?

Ildest avatar Feb 19 '24 12:02 Ildest

@nkylstad jeg trenger en kort forklaring på denne før jeg kan forslå tekster.

Ildest avatar Mar 22 '24 07:03 Ildest