NumberSequencePicker
An interface for modifying NumberSequence values. This closely resembles the built-in NumberSequence picker for editing properties, with minor adjustments for improved readability.
Dark | Light |
---|---|
As this is a controlled component, you should pass a NumberSequence to the Value
prop
representing the current value, and a callback to the OnChanged
prop which gets run when the
user attempts to change the sequence using the interface. For example:
local function MyComponent()
local sequence, setSequence = React.useState(NumberSequence.new(...))
return React.createElement(StudioComponents.NumberSequencePicker, {
Value = sequence,
OnChanged = setSequence,
})
end
The default size of this component is exposed in Constants.DefaultNumberSequencePickerSize. To keep all inputs accessible, it is recommended not to use a smaller size than this.
Types
Props
Component Propsinterface
Props {
}