@web-core/web-sdk
    Preparing search index...

    Interface IFieldsController

    foreks fields controller you can manage all fields action in this class all you need first you must call set methods for storing fields in this class then you can manage all fields from here..

    interface IFieldsController {
        getAll(): Field[];
        getById(id: string): Field;
        getByShortCode(shortCode: string): Field;
        search(query: string): Field[];
        setFields(locale: DefinitionLocale): Promise<void>;
        setFieldsByStaticData(fields: Field[]): void;
    }
    Index

    Methods

    • Returns Field[]

      get all fields if you want to get all fields you must call setFields method first

    • Parameters

      • id: string

      Returns Field

      get field by id

    • Parameters

      • shortCode: string

        short code

      Returns Field

      get field by short code

    • Parameters

      • query: string

        query

      Returns Field[]

      search with id in fields

    • Parameters

      Returns Promise<void>

      prepare fields from widget settings

    • Parameters

      Returns void

      set fields by static data