getNavItems
(Beta)
Use this wire adapter to retrieve the items in the navigation menu.
getNavItems
uses this User Interface API resource.
Parameter Name | Type | Description | Required? |
---|---|---|---|
formFactor | String | The response includes navigation items that support this form factor.
formFactor , use the @salesforce/client/formFactor module. | |
navItemNames | String[] | A comma-delimited list of TabDefinition name values to include in the response. If navItemNames isn’t specified, the response includes all the navigation items for the specified formFactor . | |
page | Integer | The page offset from which to begin returning nav items. The default value is 0, which returns nav items from the first page. For example, for page=2 and pageSize=10 , the first item returned is the 21st item in the list. | |
pageSize | Integer | The maximum number of nav items to return on a page. The default value is 25. |
Read the data that's returned by the wire adapter using a property or function.
propertyOrFunction
—A private property or function that receives the stream of data from the wire service.
- If a property is decorated with
@wire
, the results are returned to the property’sdata
property orerror
property. - If a function is decorated with
@wire
, the results are returned in an object with adata
property and anerror
property.
data
—Nav Itemserror
—FetchResponse