Meteor autoform 删除星号表单单选选项

标签 meteor meteor-autoform

我有一个 select-radio-inline' 类型的自动表单。所需的星号显示在所有选项中。我想把它从单选框中删除。 如何实现?

enter image description here

架构:

name: {
  type: String,
  autoform: {
    type: 'select-radio-inline',
    label: "Sex",
    afFieldInput: {
      options: function() {
        return [{
          label: "male",
          value: "male"
        }, {
          label: "female",
          value: "female"
        }];
      }
    }
  }
}

最佳答案

这对我有用。

.form-group[data-required="true"] .af-radio-group label:after {
    content: "" !important;
}

关于Meteor autoform 删除星号表单单选选项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34329842/

相关文章:

mongodb - 在 Autoform 中使用对象作为选项

javascript - Meteor 轻松搜索和 Iron-router

html - Meteor accounts - 自定义登录页面

javascript - 如何构建大型 meteor.js 应用程序?

MeteorJS - 监视服务器变量更改并更新模板值

jquery - AutoForm 自定义字段对象数组

javascript - nvd3 折线图未绘制正确的数据

javascript - 调用 Meteor.call() 并在 `before: insert` 钩子(Hook)内等待

javascript - Meteor - 选择元素选项加载函数始终返回未定义

javascript - 使用 meteor-autoform 提交后创建文档