Function create_scrollable

Creating an instance of Scrollable.

See ScrollableData for required/available options.

import {Command, create_scrollable} from 'meinu';

new Command({...})
.addHandler("chat_input", (bot, int) => create_scrollable({
int,
data: () => [{title: "foo"}, {title: "bar"}],
match: (v) => ({
content: `## ${v.title}`
})
}));