hint UI 元素与 部分元素 相同,但呈现在一个可由用户关闭的提示容器内。
_hint1:
type: hint
path: content_field以下 字段属性 受支持。
| Property | Description |
|---|---|
| label | title text for the section. |
| comment | secondary text for the section. |
| mode | visual display mode, as either: tip, info, warning, danger, success. Default: info. |
| path | path to a partial view file. |
一个提示支持字段的行内内容。label 和 comment 值是可选的,并包含标题和副标题的内容。你也可以对这些值使用 Markdown 语法。
_tip1:
type: hint
mode: tip
label: Pro Tip
comment: Always check to make sure this field is populated.该 mode 属性支持以下值: tip, info, warning, danger, success
_warning1:
type: hint
mode: warning
label: Always wash your hands
comment: This is good for stopping the spread of germs.