这个 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 属性支持以下值: 提示, 信息, 警告, 危险, 成功
_warning1:
type: hint
mode: warning
label: Always wash your hands
comment: This is good for stopping the spread of germs.