Extensions

Press shift + S to search API reference.

React component

ViewPicker

View source

Props

interface ViewPickerProps extends SharedViewPickerProps
allowedTypesArray<ViewType>

An array indicating which view types can be selected.

aria-describedbyundefined | string

A space separated list of description element IDs.

aria-labelundefined | string

The aria-label attribute. Use this if the select is not referenced by a label element.

aria-labelledbyundefined | string

A space separated list of label element IDs.

autoFocusundefined | false | true

The autoFocus attribute.

classNameundefined | string

Additional class names to apply to the select.

disabledundefined | false | true

If set to true, the user cannot interact with the select.

idundefined | string

The id attribute.

nameundefined | string

The name attribute.

onChangeundefined | function (viewModel: View | null) => void

A function to be called when the selected view changes.

placeholderundefined | string

The placeholder text when no view is selected. Defaults to 'Pick a view...'

shouldAllowPickingNoneundefined | false | true

If set to true, the user can unset the selected view.

sizeControlSizeProp

The size of the select.

styleReact.CSSProperties

Additional styles to apply to the select.

tabIndexundefined | number

The tabindex attribute.

tableTable | null

The parent table model to select views from. If null or undefined, the picker won't render.

viewView | null

The selected view model.