mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-14 22:42:46 +00:00
Expose typed IDML guide settings
This commit is contained in:
1 file changed
+10
@@ -188,6 +188,16 @@ impl Guide {
|
||||
pub fn liquid(&self) -> bool {
|
||||
self.values.get("GuideType") == Some("Liquid")
|
||||
}
|
||||
|
||||
/// `Locked` is true.
|
||||
pub fn locked(&self) -> bool {
|
||||
self.values.boolean("Locked") == Some(true)
|
||||
}
|
||||
|
||||
/// `ItemLayer`: the identifier of the layer the guide belongs to.
|
||||
pub fn item_layer(&self) -> Option<&str> {
|
||||
self.values.item_layer()
|
||||
}
|
||||
}
|
||||
|
||||
/// What a page item is.
|
||||
|
||||
Reference in new issue
Block a user