Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SearchForm

Hierarchy

  • SearchForm

Index

Constructors

constructor

Properties

data

data: any

form

form: Form

httpClient

httpClient: HttpClient

Methods

after

  • Remove all the documents except for those after the specified document in the list. This is an optional method.

    Parameters

    • documentId: string

    Returns SearchForm

fetch

  • Restrict the results document to the specified fields

    Parameters

    • fields: string | string[]

    Returns SearchForm

fetchLinks

  • fetchLinks(fields: string | string[]): SearchForm
  • Include the requested fields in the DocumentLink instances in the result

    Parameters

    • fields: string | string[]

    Returns SearchForm

graphQuery

  • Sets the graphquery to query for this SearchForm. This is an optional method.

    Parameters

    • query: string

    Returns SearchForm

lang

  • Sets the language to query for this SearchForm. This is an optional method.

    Parameters

    • langCode: string

    Returns SearchForm

orderings

  • Sets the orderings to query for this SearchForm. This is an optional method.

    Parameters

    • Optional orderings: string[]

    Returns SearchForm

page

  • Sets the page number to query for this SearchForm. This is an optional method.

    Parameters

    • p: number

    Returns SearchForm

pageSize

  • Sets a page size to query for this SearchForm. This is an optional method.

    Parameters

    • size: number

      The page size

    Returns SearchForm

    • The SearchForm itself

query

  • Sets a predicate-based query for this SearchForm. This is where you paste what you compose in your prismic.io API browser.

    Parameters

    • query: string | string[]

    Returns SearchForm

ref

  • Sets a ref to query on for this SearchForm. This is a mandatory method to call before calling submit(), and api.form('everything').submit() will not work.

    Parameters

    • ref: string

    Returns SearchForm

set

submit

url

  • url(): string
  • Build the URL to query

    Returns string

Generated using TypeDoc