Databind labels in ViewModels
No edit summary
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Labels are normally static presentation texts - these texts can be translated by following the strategy describe [[Localization|here]]
<message>Write the content here to display this box</message>
Labels are normally static presentation texts. These texts can be translated by following the strategy described [[Documentation:Localization|here.]]


But from time to time you want to use data instead of static texts.
From time to time, however, you may want to use data instead of static texts.


==== Column headers in grids ====
==== Column Headers in Grids ====
Expression for Labels - if Grid - are found on level of Grid root column taking the name of "GridRootColumnName"_"GridColumnName"_Label
Expression for Labels - if Grid - are found on the level of Grid root column taking the name of "GridRootColumnName"_"GridColumnName"_Label


and
==== Labels for Widgets and Buttons ====
Expression for Labels on simple widgets are found on the same level, taking the name of "ColumnName"_Label


==== Labels for widgets and buttons ====
[[File:2022-03-18 15h39 51.gif|alt=x|none|thumb|884x884px]]
Expression for Labels on simple widgets - are found on same level taking the name of "ColumnName"_Label


[[File:2022-03-18 15h39 51.gif|alt=x|none|thumb|1520x1520px]]And for MVC and AngularJS:
And for MVC and AngularJS:
[[File:2022-03-18 16h41 21.gif|none|thumb|1520x1520px]]
[[File:2022-03-18 16h41 21.gif|none|thumb|883x883px]]
[[Category:View Model]]
[[Category:View Model]]
{{Edited|July|12|2025}}

Latest revision as of 05:56, 28 January 2025

This page was created by Hans.karlsen@mdriven.net on 2022-03-18. Last edited by Stephanie@mdriven.net on 2025-01-28.

Labels are normally static presentation texts. These texts can be translated by following the strategy described here.

From time to time, however, you may want to use data instead of static texts.

Column Headers in Grids

Expression for Labels - if Grid - are found on the level of Grid root column taking the name of "GridRootColumnName"_"GridColumnName"_Label

Labels for Widgets and Buttons

Expression for Labels on simple widgets are found on the same level, taking the name of "ColumnName"_Label

x

And for MVC and AngularJS:

2022-03-18 16h41 21.gif