Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Hopsaheysa committed Aug 1, 2024
1 parent 12900c0 commit b2327e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class WMTTemplates: Codable {
/// How the operation should look like in the list of operations
public let list: ListTemplate?

/// How the operation detail should look like
/// How the operation detail should look like when viewed individually.
public let detail: DetailTemplate?

// MARK: - Internals
Expand Down Expand Up @@ -149,7 +149,7 @@ public class WMTTemplates: Codable {
/// Predefined style name that can be processed by the app to customize the overall look of the operation.
public let style: String?

/// Indicates if the header should be created from form data (title, message, image) or customized for a specific operation
/// Indicates if the header should be created from form data (title, message) or customized for a specific operation
public let showTitleAndMessage: Bool?

/// Sections of the operation data.
Expand Down
11 changes: 7 additions & 4 deletions docs/Using-Operations-Service.md
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ public class WMTTemplates: Codable {
/// The template how the operation should look like in the list of operations
let list: ListTemplate?

/// The template for how the operation data should look like
/// How the operation detail should look like when viewed individually.
let detail: DetailTemplate?
}
```
Expand All @@ -794,16 +794,16 @@ public class ListTemplate: Codable {
let message: AttributeName?

/// Attribute which will be used for the image
let image: AttributeName?
let image: AttributeId?
}

public class DetailTemplate: Codable {

/// Predefined style name that can be processed by the app to customize the overall look of the operation.
let style: String?

/// Indicates if the header should be created from form data (title, message, image) or customized for a specific operation
let automaticHeaderSection: Bool?
/// Indicates if the header should be created from form data (title, message) or customized for a specific operation
let showTitleAndMessage: Bool?

/// Sections of the operation data.
let sections: [Section]?
Expand Down Expand Up @@ -838,6 +838,9 @@ public class DetailTemplate: Codable {
/// Define if the cell should be collapsable
let collapsable: Collapsable?

/// If value should be centered
let centered: Bool?

public enum Collapsable: String, Codable {
/// The cell should not be collapsable
case no = "NO"
Expand Down

0 comments on commit b2327e2

Please sign in to comment.