Dependencies

From Wikisphere
Revision as of 00:00, 15 January 2001 by 127.0.0.1 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
title"Dependencies"
type"object"
properties
_text1
title"Dependencies Example"
type"string"
x-format"hidden"
description"<p>This example shows the use of the <strong>dependencies</strong> option, where you can have a field depend on the value of another field.</p><p>This works by creating all dependant element and then hide/show the selected one. So this feature works best if fields are placed vertically.</p>"
category
title"Category"
type"string"
enum
"Chocolates"
"Vegetables"
"Icecreams"
subcategory1
title"Subcategory"
type"string"
enum
"Dark chocolate"
"Milk chocolate"
"White chocolate"
"Gianduja chocolate"
x-dependency
category"Chocolates"
subcategory2
title"Subcategory"
type"string"
enum
"Broccoli"
"Cabbage"
"Carrot"
"Tomato"
x-dependency
category"Vegetables"
subcategory3
title"Subcategory"
type"string"
enum
"Frozen yogurt"
"Booza"
"Ice milk"
x-dependency
category"Icecreams"
billing
title"Billing address same as shipping address"
type"boolean"
x-input"OO.ui.CheckboxInputWidget"
defaultfalse
billingaddress
title"Billing address"
type"string"
x-dependency
billingfalse