forest-attribute
property. The forest-
preceding the field name is required.belongsTo
relationship works in exactly the same way as accessing a simple field. Forest triggers automatically an API call to retrieve the data from your Admin API only if it’s necessary.Shipping
Smart View (in the collection named Order
) defined on our Live Demo example, we’ve displayed the full name of the customer related to an order.hasMany
relationship works in exactly the same way as accessing a simple field.. Forest triggers automatically an API call to retrieve the data from your Admin API only if it’s necessary.fetchRecords
action in order to refresh the records on the page.store
service for that purpose. Check out the list of all available services from your Smart View.appointments
has a Calendar
Smart View. When you click on the previous or next month, the Smart View fetches the new events in the selected month. The result here is set to the propertyappointments
. You can access it directly from your template. {
field: <a field name>
operator: <an operator name>
value: <a value>
}
{
aggregator: <and or or>
conditions: <an array of filters or aggregations>
}
less_than
, greater_than
, equal
, after
, before
, contains
, starts_with
, ends_with
, not_contains
, present
, not_equal
, blank
America/Los_Angeles
.deleteRecords
action lets you delete one or multiple records. A pop-up will automatically ask for a confirmation when a user triggers the delete action.triggerSmartAction
function imported from 'client/utils/smart-view-utils'
has the following signature:this
collection
that has the Smart Actioncollection
currentPage
isLoading
numberOfPages
records
searchValue
deleteRecords(records)
triggerSmartAction(collection, actionName, record)