data()

in src/components/base/filtered_search/filtered_search.stories.js [481:508]


  data() {
    return {
      tokens: [
        {
          type: 'weight',
          icon: 'weight',
          title: 'Weight',
          unique: true,
          token: GlFilteredSearchToken,
        },
        {
          type: 'confidential',
          icon: 'eye-slash',
          title: 'Confidential',
          unique: true,
          token: GlFilteredSearchToken,
          options: [
            { icon: 'eye-slash', value: 'true', title: 'Yes' },
            { icon: 'eye', value: 'false', title: 'No' },
          ],
        },
      ],
      value: [
        { type: 'weight', value: { data: '3', operator: '=' } },
        { type: 'confidential', value: { data: 'Yes', operator: '!=' } },
      ],
    };
  },