meta info
- Title: LanguageNav TagHelper Attributes
- Keywords: asp.net-core, taghelpers, language, dropdown, localization
- Description: Attributes of LanguageNav TagHelper.
- Author: Ziya Mollamahmut
- Date: 08-Aug-2020
- Image: https://github.com/LazZiya/Docs/raw/master/LazZiya.TagHelpers/v5.0/images/lazziya-tagheleprs-logo.png
- Image-alt: LazZiya.TagHelpers Logo
- Version: v5.0
All language navigation taghelper attributes are optional.
Html attribute | type | default value | description |
---|---|---|---|
supported-cultures |
string |
Manually specify a list of supported cultures. e.g. "en,tr,ar" | |
language-label |
LanguageLabel |
LanguageLabel.EnglishName |
The displayed text for each language in the dropdown. Possible values: Name , DisplayName , EnglishName , NativeName , TwoLetterISOLanguageName |
redirect-to-url |
string |
{0} |
The url to redirect to on language change. |
cookie-handler-url |
string |
The url to the handler that sets the value of culture cookie. | |
render-mode |
RenderMode |
RenderMode.Bootstrap |
Render a bootstrap dropdown or a classic <select> dropdown. Possible values: Bootstrap , Classic . |
flags |
bool |
false |
Show/hide relevant country flags. Works with bootstrap mode only. |
flags-squared |
bool |
false |
Show flags in squared format. |