2017-02-11 4 views
0

내가 모질라의 반응 - jsonschema 양식 놀러 노력하고 반응 this재주문 양식 컨트롤 양식

나는

{ 
    "ui:order": [ 
    "shipping_address", 
    "billing_address", 
    "tree" 
    ] 
} 

{ 
    "definitions": { 
    "address": { 
     "type": "object", 
     "properties": { 
     "street_address": { 
      "type": "string" 
     }, 
     "city": { 
      "type": "string" 
     }, 
     "state": { 
      "type": "string" 
     } 
     }, 
     "required": [ 
     "street_address", 
     "city", 
     "state" 
     ] 
    }, 
    "node": { 
     "type": "object", 
     "properties": { 
     "name": { 
      "type": "string" 
     }, 
     "children": { 
      "type": "array", 
      "items": { 
      "$ref": "#/definitions/node" 
      } 
     } 
     } 
    } 
    }, 
    "type": "object", 
    "properties": { 
    "billing_address": { 
     "title": "Billing address", 
     "$ref": "#/definitions/address" 
    }, 
    "shipping_address": { 
     "title": "Shipping address", 
     "$ref": "#/definitions/address" 
    }, 
    "tree": { 
     "title": "Recursive references", 
     "$ref": "#/definitions/node" 
    } 
    } 
} 

UiSchema로 내 jsonschema는 사용이 재주문 i는 ii의 제어 순서를 제어 할 수 있지만 배송지 주소는 번지, 도시 및 주를 가지고 있습니다. 이러한 컨트롤의 순서를 내가 모질라는 jsonschema 양식을 반응하여

어떤 사람이 당신이 할 수있는이

답변

2

에 좀 도와 주실 래요 그렇게 할 수있는 방법을 도시는 배송 주소에서 첫 번째 표시 할 생각 : 어떻게 UI를 제어 할 수 있습니다 배송 주소 수준에서 주문을 추가하십시오.

{ 
    "shipping_address": { 
    "ui:order": [ 
     "city", 
     "*" 
    ] 
    }, 
    "ui:order": [ 
    "shipping_address", 
    "billing_address", 
    "tree" 
    ] 
} 
관련 문제