Hide

YetaWF Documentation

Display
Print

USState Component

USState (Display)

Displays the full state name of a US state given an abbreviation. If the model is null or the abbreviation is not found, nothing is rendered.

Model Type: string

All states and their abbreviations are defined in ./CoreComponents/Core/Addons/_Templates/USState/USStates.txt.

[Category("General"), Caption("State"), Description("The state of the mailing address")]
[UIHint("USState"), ReadOnly]
public string StateUS { get; set; }

USState (Edit)

Allows selection of a US state from a dropdown list. The model returns a 2 character abbreviation for the selected state.

Model Type: string

All states and their abbreviations are defined in ./CoreComponents/Core/Addons/_Templates/USState/USStates.txt.

AdditionalMetadata Attributes

NameTypeDefaultDescription
NoDefaultboolfalseDefines whether a "(select)" entry is automatically added as the first entry, with a value of null
[Caption("State"), Description("The state of the billing address")]
[UIHint("USState"), StringLength(Invoice.MaxState), Trim]
public string BillStateUS { get; set; }