Pular para o conteúdo principal

externalModelCategorySelector

A Selector that provide methods to list and request information on ModelCategories.

You can use a ModelCategorySelector by accessing ModelInstance.categories.

Index

Methods

Methods

externalget

  • Returns a StarlightItemResponse with a single ModelCategory.

    @example

    Requesting information from a category “premium” from a model of slug “plans”.

    import Starlight from '@starlightcms/js-sdk'

    const response = await Starlight.plans.premium.get()

    Parameters

    • externalslug: string

      The category slug.

    Returns Promise<StarlightItemResponse<ModelCategory>>

externallist