folder(フォルダー)
eagle.folder API を使って、新しいフォルダを簡単に作成したり、現在のアプリケーション内のフォルダにアクセスすることができます。
// Eagle アプリで現在選択されているフォルダを取得
let folder = (await eagle.folder.getSelected())[0];
// 属性を変更
folder.name = '新しいフォルダ名';
folder.description = '新しい説明...';
// 変更を保存
await folder.save();メソッド
create(options)
createSubfolder(parentId, options)
get(options)
getAll()
getById(folderId)
getByIds(folderIds)
getSelected()
getRecents()
open(folderId)
クラス:Folder
インスタンスメソッド
save()
open()
インスタンス属性
id string
id stringname string
name stringdescription string
description stringicon string
icon stringiconColor string
iconColor stringcreatedAt Integer
createdAt Integerparent string
parent stringchildren Folder[]
children Folder[]静的プロパティ
IconColor Object
IconColor Object最終更新