smartFolder
The eagle.smartFolder API lets you create, query, modify, and delete smart folders.
// Create a smart folder using the fluent builder
const sf = await eagle.smartFolder.create({
name: 'Large PNGs',
conditions: [
eagle.smartFolder.Condition.create('AND', [
eagle.smartFolder.rule('width')['>']([1920]),
eagle.smartFolder.rule('type').equal('png'),
])
]
});
// Modify properties
sf.name = 'Extra Large PNGs';
sf.iconColor = 'blue';
// Save changes
await sf.save();Methods
create(options)
get(options)
getAll()
getById(smartFolderId)
getByIds(smartFolderIds)
remove(smartFolderId)
getRules()
rule(property)
Class: SmartFolder
Instance Methods
save()
getItems(options)
Instance Properties
id string
id stringname string
name stringconditions Object[]
conditions Object[]description string
description stringicon string
icon stringiconColor string
iconColor stringmodificationTime integer
modificationTime integerchildren SmartFolder[]
children SmartFolder[]parent string
parent stringimageCount integer
imageCount integerHelper Classes
SmartFolder.Rule
SmartFolder.Condition
Static Properties
IconColor Object
IconColor ObjectLast updated