简体   繁体   English

羊驼 - 在必填项上用'*'替换'★'

[英]Alpaca - Replace '★' with '*' on required field

Is there a way to replace the Star symbol with an asterisk on a 'required' field label on Alpaca? 有没有办法用羊驼上“必需”字段标签上的星号替换星号? 在此输入图像描述

Here is the schema: 这是架构:

var Schema = {
    "title": "Lista controlli",
    "type": "array",
    "items": {
        "type": "object",
        "title": "Controllo Lavorazione",
        "properties": {
            ...
            "Nome": {
                "title": "Nome",
                "type": "string",
                "required": true
            }
        }
    }
}

Thanks in advance. 提前致谢。

You can deal with that using css like this: 你可以使用这样的css处理它:

.alpaca-icon-required::before {
    content: "*"
}

You could also change it's font-size because it will be kinda big. 你也可以改变它的字体大小,因为它会有点大。

Hope this works for you. 希望这对你有用。 I this isn't what you're looking for don't hesitate to comment. 我这不是你想要的,不要犹豫评论。

在最新版本1.5.24中,字段标签前面的星号已替换为字段标签后面的文本“ (必填) ”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM