{"hits":[{"kind":"Guide section","title":"Async and cascading options","tool":"GetBormGuideSection(heading: \"Async and cascading options\")","snippet":"## Async and cascading options  Options can be loaded on demand and refreshed when another field changes:  ```csharp .Field(x => x.City, f => f     .Required()     .OptionsFrom(..."},{"kind":"API method","title":"BormFieldBuilder.OptionsFrom","context":"BormFieldBuilder","tool":"GetBormApi(typeName: \"BormFieldBuilder\")","snippet":"...a service, or from another field's current value to build a cascading select. List dependsOn paths so the options reload (and the stale selection clears) whenever one of them chang..."},{"kind":"API property","title":"BormFieldDefinition.OptionsProvider","context":"BormFieldDefinition","tool":"GetBormApi(typeName: \"BormFieldDefinition\")","snippet":"...ome from a service or that depend on another field's value (cascading selects). Re-runs whenever a path in BormFieldDefinition.OptionsDependencies changes."},{"kind":"Demo page","title":"Async & cascading options","context":"/cascading","tool":"GetBormSourceFile(path: \"Demo/Client/Pages/CascadingOptionsDemo.razor\")","snippet":"Options do not have to be baked into the schema."},{"kind":"API method","title":"BormFieldBuilder.Options","context":"BormFieldBuilder","tool":"GetBormApi(typeName: \"BormFieldBuilder\")","snippet":""},{"kind":"API method","title":"BormOptionsProvider.Invoke","context":"BormOptionsProvider","tool":"GetBormApi(typeName: \"BormOptionsProvider\")","snippet":""},{"kind":"API delegate","title":"BormOptionsProvider","tool":"GetBormApi(typeName: \"BormOptionsProvider\")","snippet":"...lect/radio/multi-select field on demand. This is what makes cascading selects possible — \"cities\" reading the currently selected \"country\" — and lets options come from a service in..."},{"kind":"API method","title":"BormState.OptionsFor","context":"BormState","tool":"GetBormApi(typeName: \"BormState\")","snippet":"The options to render for a field: those loaded by its BormFieldDefinition.OptionsProvider if it has one, otherwise the static BormFieldDefinition.Options from the schema."},{"kind":"API method","title":"BormEnumOptions.For","context":"BormEnumOptions","tool":"GetBormApi(typeName: \"BormEnumOptions\")","snippet":"Builds the options for enumType in declaration (or [Display(Order)]) order."},{"kind":"API property","title":"BormFieldContext.Options","context":"BormFieldContext","tool":"GetBormApi(typeName: \"BormFieldContext\")","snippet":"The choices to render, resolved through the field's options provider when it has one."},{"kind":"API property","title":"BormFieldDefinition.Options","context":"BormFieldDefinition","tool":"GetBormApi(typeName: \"BormFieldDefinition\")","snippet":"Options for select/radio/multiselect fields."},{"kind":"API method","title":"BormSelectOption.Of","context":"BormSelectOption","tool":"GetBormApi(typeName: \"BormSelectOption\")","snippet":"Creates an option where the value and label are identical."}],"hasMore":true}