{
this.updateField(table, index, 'prompted', checked);
}} />
)
}
},
{
title: i18next.t("provider:rule"),
dataIndex: 'rule',
key: 'rule',
width: '120px',
render: (text, record, index) => {
let options = [];
if (record.name === "ID") {
options = [
{id: 'Random', name: 'Random'},
{id: 'Incremental', name: 'Incremental'},
];
} if (record.name === "Display name") {
options = [
{id: 'None', name: 'None'},
{id: 'Real name', name: 'Real name'},
{id: 'First, last', name: 'First, last'},
];
}
if (options.length === 0) {
return null;
}
return (
)
}
},
{
title: i18next.t("general:Action"),
key: 'action',
width: '100px',
render: (text, record, index) => {
return (
} size="small" onClick={() => this.upRow(table, index)} />
} size="small" onClick={() => this.downRow(table, index)} />
} size="small" onClick={() => this.deleteRow(table, index)} />
);
}
},
];
return (
(
{this.props.title}
)}
/>
);
}
render() {
return (
{
this.renderTable(this.props.table)
}
)
}
}
export default SignupTable;