Text

in namespace DotVVM.BusinessPack.Controls

Usage & Scenarios

Displays inline content using the Business Pack theme's text styling.

Sample 1: Labeling a value

Place text, inline markup, or a value binding between the <bp:Text> tags. Here the label stays the same while the order number comes from the viewmodel.

<bp:Text>Order number: <strong>{{value: OrderNumber}}</strong></bp:Text>
using DotVVM.Framework.ViewModel;

namespace DotvvmWeb.Views.Docs.Controls.businesspack.Text.sample1
{
    public class ViewModel : DotvvmViewModelBase
    {
        public string OrderNumber { get; set; } = "A-1042";
    }
}

Properties

Name Type Description Notes Default Value

HTML produced by the control