June 2017
Beginner to intermediate
334 pages
7h 11m
English
The results.js file consists of the code to generate the tabular data, with its result obtained from the Prediction Vision API. The results will be in a tabular form, and we can use the map function to bind the results. The entire code can be viewed at https://github.com/PacktPublishing/Learning-Salesforce-Einstein/blob/master/Chapter5/EinsteinVision/filedrop-ui/results.js:
import React, { Component } from 'react'; class Results extends Component { render() { return ( <table className="slds-table slds-table--bordered slds-table--cell-buffer"> <thead> <tr className="slds-text-title--caps"> <th scope="col"> <div className="slds-truncate" >Label</div> </th> <th scope="col"> <div className="slds-truncate" >Probability</div> ...Read now
Unlock full access