CAPITAL BOTTOM

17 views
Skip to first unread message

karam mohammed 1

unread,
Sep 11, 2025, 9:34:46 AM (20 hours ago) Sep 11
to mementodatabase
I have a Memento Action script that displays all library entries as buttons. The goal is to show the entry names in  in their original casing, but currently the names are Always Capital letters .
As in screen shot entry name is (Name Test) but in buttoms is (NAME TEST).
Screenshot_20250911_162600_Memento Database.jpg

karam mohammed 1

unread,
Sep 11, 2025, 9:37:52 AM (20 hours ago) Sep 11
to mementodatabase
The Action used



// Show all entries as buttons (no action on click)
(function() {
    var entries = lib().entries() || [];
    var layout = [];

    entries.forEach(function(e) {
        layout.push(
            ui().button(e.name) // Display the entry name on the button
                .width(600)
                .font({ size: 14, style: "bold" })
                .action(function() { return true; }) // Does nothing when clicked
        );
        layout.push(ui().text("").height(6)); // Space between buttons
    });

    if (layout.length === 0) {
        layout.push(ui().text("No entries found").font({ size: 14, style: "bold" }));
    }

    dialog()
        .title("All Library Entries")
        .view(ui().layout(layout, "vertical"))
        .positiveButton("Close", function() { return true; })
        .show();
})();
Reply all
Reply to author
Forward
0 new messages