KPIProgressItem
public struct KPIProgressItem
extension KPIProgressItem: KPIHeaderItemModel
extension KPIProgressItem: View
extension KPIProgressItem: _ViewEmptyChecking
KPIProgressItem
enables a developer to present “KPI” information in a formatted manner consistent with the Fiori Design Language
Usage
let percentData = KPIItemData.percent(0.65)
let fractionData = KPIItemData.fraction(76, 90, numberFormatterProvider.numberFormatter)
KPIProgressItem(kpiCaption: "Completed", data: .constant(percentData))
KPIProgressItem(kpiCaption: "In progress", data: .constant(fractionData), chartSize: .small)
-
Undocumented
Declaration
Swift
public init(@ViewBuilder kPIContent: () -> any View = { EmptyView() }, @ViewBuilder kpiCaption: () -> any View = { EmptyView() }, @ViewBuilder footnote: () -> any View = { EmptyView() }, @ViewBuilder innerCircle: () -> any View, @ViewBuilder outerCircle: () -> any View, data: Binding<KPIItemData>, chartSize: KPIProgressItemSize = .large, componentIdentifier: String? = KPIProgressItem.identifier)
-
Undocumented
Declaration
Swift
static let identifier: String
-
Undocumented
Declaration
Swift
init(@ViewBuilder kPIContent: () -> any View = { EmptyView() }, kpiCaption: AttributedString? = nil, footnote: AttributedString? = nil, innerCircle: any Shape = Circle(), outerCircle: any Shape = Circle(), data: Binding<KPIItemData>, chartSize: KPIProgressItemSize = .large)
-
Undocumented
Declaration
Swift
init(_ configuration: KPIProgressItemConfiguration)
-
Declaration
Swift
public var body: some View { get }
-
Undocumented
Declaration
Swift
public var isEmpty: Bool { get }