mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-31 08:44:57 +00:00
368ede5645
This introduces a `StatusAddress` component which renders an address and can be made `expandable` by applying a `width`: ```qml import StatusQ.Components 0.1 // Simple case StatusAddress { text: "0x9ce0056c5fc6bb9459a4dcfa35eaad8c1fee5ce9" } // Expandable case Item { width: 200 height: childrenRect.height StatusAddress { text: "0x9ce0056c5fc6bb9459a4dcfa35eaad8c1fee5ce9" expandable: true width: parent.width } } ``` Closes #430
26 lines
472 B
QML
26 lines
472 B
QML
import QtQuick 2.14
|
|
import QtQuick.Controls 2.14
|
|
import QtQuick.Layouts 1.14
|
|
|
|
import StatusQ.Components 0.1
|
|
|
|
import Sandbox 0.1
|
|
|
|
Column {
|
|
spacing: 8
|
|
|
|
StatusAddress {
|
|
text: "0x9ce0056c5fc6bb9459a4dcfa35eaad8c1fee5ce9"
|
|
}
|
|
|
|
Item {
|
|
width: 200
|
|
height: childrenRect.height
|
|
StatusAddress {
|
|
text: "0x9ce0056c5fc6bb9459a4dcfa35eaad8c1fee5ce9"
|
|
expandable: true
|
|
width: parent.width
|
|
}
|
|
}
|
|
}
|