Skip to main content

DropDownButtonBuilder.DataSource Method

Name Parameters Description
DataSource(JS) js Provides data for the drop-down menu. Mirrors the client-side dataSource option.
DataSource(IEnumerable, String[]) data, key Binds a DropDownButton control to a collection: Array, List, or IEnumerable.
DataSource(Func<DataSourceFactory, OptionsOwnerBuilder>) configurator Binds a DropDownButton control to data, allows you to configure data access from different sources: API controllers, Razor page handlers, OData services, arrays, and more.
DataSource(String, String[]) staticJsonUrl, key Binds a DropDownButton control to read-only data in JSON format.