chore(Storybook): page for NetworkFilter added

This commit is contained in:
Michał Cieślak 2023-04-19 14:05:47 +02:00 committed by Michał
parent 70a6327ad4
commit c97fe80420
3 changed files with 66 additions and 1 deletions

View File

@ -237,6 +237,10 @@ ListModel {
title: "DerivationPathInput" title: "DerivationPathInput"
section: "Components" section: "Components"
} }
ListElement {
title: "NetworkFilter"
section: "Components"
}
ListElement { ListElement {
title: "BrowserSettings" title: "BrowserSettings"
section: "Settings" section: "Settings"

View File

@ -0,0 +1,61 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import Storybook 1.0
import Models 1.0
import AppLayouts.Wallet.controls 1.0
SplitView {
id: root
orientation: Qt.Vertical
Item {
id: container
SplitView.fillWidth: true
SplitView.fillHeight: true
Rectangle {
width: 800
height: 200
border.width: 1
anchors.centerIn: parent
NetworkFilter {
anchors.centerIn: parent
width: 200
layer1Networks: NetworksModel.layer1Networks
layer2Networks: NetworksModel.layer2Networks
testNetworks: NetworksModel.testNetworks
enabledNetworks: NetworksModel.enabledNetworks
allNetworks: enabledNetworks
isChainVisible: isChainVisibleCheckBox.checked
multiSelection: multiSelectionCheckBox.checked
}
}
}
LogsAndControlsPanel {
SplitView.minimumHeight: 100
SplitView.preferredHeight: 150
SplitView.fillWidth: true
Row {
CheckBox {
id: isChainVisibleCheckBox
text: "Is chain visible"
checked: true
}
CheckBox {
id: multiSelectionCheckBox
text: "Multi selection"
checked: true
}
}
}
}