mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-09 13:56:10 +00:00
feat(Storybook): scrollbar and button for clearing search input added
This commit is contained in:
parent
038ab08765
commit
1ac4c34a63
@ -32,6 +32,9 @@ ColumnLayout {
|
|||||||
sourceModel: filteredModel
|
sourceModel: filteredModel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RowLayout {
|
||||||
|
Layout.fillWidth: true
|
||||||
|
|
||||||
TextField {
|
TextField {
|
||||||
id: textField
|
id: textField
|
||||||
|
|
||||||
@ -39,11 +42,18 @@ ColumnLayout {
|
|||||||
placeholderText: "search"
|
placeholderText: "search"
|
||||||
|
|
||||||
Keys.onEscapePressed: {
|
Keys.onEscapePressed: {
|
||||||
text = ""
|
clear()
|
||||||
focus = false
|
focus = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ToolButton {
|
||||||
|
text: "❌"
|
||||||
|
|
||||||
|
onClicked: textField.clear()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
PagesList {
|
PagesList {
|
||||||
id: pagesList
|
id: pagesList
|
||||||
|
|
||||||
|
@ -15,6 +15,8 @@ ListView {
|
|||||||
readonly property string foldedPrefix: "▶ "
|
readonly property string foldedPrefix: "▶ "
|
||||||
readonly property string unfoldedPrefix: "▼ "
|
readonly property string unfoldedPrefix: "▼ "
|
||||||
|
|
||||||
|
ScrollBar.vertical: ScrollBar {}
|
||||||
|
|
||||||
delegate: ItemDelegate {
|
delegate: ItemDelegate {
|
||||||
id: delegate
|
id: delegate
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user