mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-24 06:34:09 +00:00
Enhance TextInput and filtering functionality in ConfirmingPage
- Added support for onChanged event in TextInput to handle real-time text updates. - Updated ConfirmingPage to utilize onChanged for filter input, improving user interaction. - Refactored wildcard matching function in PatchVisualizer to support case-insensitive substring matching, enhancing filtering capabilities.
This commit is contained in:
parent
c092bb975c
commit
e124d8a227
3 changed files with 24 additions and 14 deletions
|
|
@ -142,12 +142,12 @@ function ConfirmingPage:render()
|
|||
|
||||
FilterInput = e(TextInput, {
|
||||
text = self.state.filterText,
|
||||
placeholder = "Filter (* = wildcard)",
|
||||
placeholder = "Filter",
|
||||
enabled = true,
|
||||
transparency = self.props.transparency,
|
||||
size = UDim2.new(0.5, -5, 1, 0),
|
||||
position = UDim2.new(0.5, 5, 0, 0),
|
||||
onEntered = function(text)
|
||||
onChanged = function(text)
|
||||
self:setState({ filterText = text })
|
||||
end,
|
||||
}),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue