Notifications
Clear all

How to generate link to the model page in ReactJS framework?  

   RSS

1

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?

This topic was modified 1 month ago by Alexey Ulyanov
Topic Tags
1 Answer
0

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',
  },
});
© 2020 One Network Enterprises. All rights reserved. Privacy Policy