2020-09-21 07:35:07
Topic starter
We can generate the link to any model page using ModelType, ModelLevelType and model JSON in ExtJS.
FieldTypes.getRenderer('modellink', {modelType: 'Shipment', modelLevelType: 'ShipmentHeader'})({value: id, displayValue: val})
Is there the same utility in ReactJS framework?
You can use FormattedTypes.render()
from @onenetwork-plt/react-components
to achieve the same thing. Using your example:
FormattedTypes.render({
type: 'modellink',
value: { value: id, displayValue: val },
props: {
modelType: 'Shipment',
modelLevelType: 'ShipmentHeader',
},
});