2017-03-06 48 views
0

我已經創建了資源網格(自動生成),並且我想避免顯示「匹配可能性」選項。 根據Sylius filters doc,"If you don't want display to user matching possibilites, you can choose one in a configuration. Then only the value input will display" 我已經做了解釋,但我仍然有這些選擇字段。 這是我網格的conf的摘錄:Sylius資源網格中的過濾器匹配可能性

filters: 
    customer: 
     type: string 
     options: 
      type: contains 

與此過濾器,我還是選擇欄。

任何想法的問題?

Tks!

回答

2

剛剛檢查它是否是文檔中的錯誤。應該是:

filters: 
    customer: 
     type: string 
     form_options: 
      type: contains 
+0

Tks CoderMaggie! – wyllyjon

+0

如果我添加'form_options',我放棄了我的文本字段上的標籤。任何想法爲什麼,以及如何恢復? – wyllyjon