Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

293
Views
how to give descriptor element (Types.Array) default value Fabric API Interface

how to give it default value how to give descriptor element (Types.Array) default value Fabric API Interface i try in many ways

import { Types } from "@teamfabric/xpm";

export default Types.Component({
  id: "SERCH_VIEW",
  label: "Serch View",
  description: "Serch page ",
  attributes: {
    sort_by_values: Types.Array({
      label: "please enter type of sorting",
      default: [
        { option: "Most relevant" },
        { option: "Recently added" },
        { option: "Price (highest to lowest)" },
        { option: "Price (lowest to highest)" },
        { option: "A - Z" },
        { option: "Z - A" },
      ];,
      children: Types.Shape({
        children: {
          option: Types.String({ label: "Type" }),
        },
      }),
    }),
  },
});
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!