The following attributes are available for this tag helper.
Attribute name | Description |
---|---|
identicon-value | Value that will be hashed using SHA1 and then used as base for this icon. |
identicon-hash | Hash that will be used as base for this icon. |
identicon-format | Format of the generated icon. This attribute is optional and defaults to PNG. |
width | The width of the generated icon. |
height | The height of the generated icon. |
The size of the icon is determined from the specified width and height of the <img> tag.
In the following example identicon-value is used to render an identicon for a user id.
@{ var userId = "TestIcon"; } <img identicon-value="userId" width="100" height="100" /<
IdenticonTagHelper | Initializes a new instance of the IdenticonTagHelper class |
Format |
Gets or sets the format of the generated icon. This attribute is optional and defaults to PNG.
| |
Hash |
Gets or sets a hash that will be used as base for this icon.
| |
Value |
Gets or sets the value that will be hashed using SHA1 and then used as base for this icon.
|