HelpText

in namespace DotVVM.Framework.Controls.Bootstrap4

Renders a help text widget that can be linked to another control.

Usage & Scenarios

Renders a help text widget that can be linked to another control.

https://getbootstrap.com/docs/4.3/components/forms/#help-text

Sample 1: HelpText Usage

Use the AssociatedControlID property to specify the ID of the control which the help text is applied to.

This will ensure that assistive technologies, such as screen readers, will announce this help text when the user focuses or enters the control.

<bs:Form>
  
  <bs:FormGroup LabelText="Password">
    <bs:TextBox ID="password" Text="{value: Password}" Type="Password"/>
    
    <bs:HelpText AssociatedControlID="password">
      A simple help text for Input Password
    </bs:HelpText>
  </bs:FormGroup>

</bs:Form>
using DotVVM.Framework.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace DotvvmWeb.Views.Docs.Controls.bootstrap.HelpText.sample1
{
    public class ViewModel : DotvvmViewModelBase
    {
        public string Password { get; set; }
    }
}

Properties

Name Type Description Notes Default Value
property icon AssociatedControlID String Gets or sets the ID of an associated control for this help text.
attribute
inner element
static value
bindable
default

HTML produced by the control