@baris well, got almost all of it working, list, add, delete, save button
now to update the database
I have the hook on save, so I can reload the operational list and use it to inform the admin page
it will be loaded via meta.get in the index.js (it doesn't return any data now, as there isn't any)
but meta isn't usable in admin..
settings is, but I don't see a save or (or load) method in the src/settings.js
but from quickstart admin.js
settings.load('quickstart', $('.quickstart-settings'), function () {
i want to save from a JS variable. but that causes some error not in the log, and I get the spinning circle saying my plugin is taking a long time.,
so close..
the admin code that gets the save click to save
var selected = [];
$('#urls').find('input[type="text"]').each(function() {
selected.push($(this).attr('value'));
});
console.log("urls to save=",selected)
try {
Settings.save(our_keya,selected, (err,sss)=>{
and the dev window console log
post_link_list save clicked
urls to save= (4) ['github.com', 'pastebin.com', 'forum.magicmirror.builders', 'docs.magicmirror.builders']
post_link_list settings save executed
settings save completed
the node bb log capturing from index
this is the output of setting save(), have the right 'hash', well its the 'key' I sent in
similar to all the other plugins I looked at
but no data
io: 1 on [
{
type: 2,
nsp: '/',
id: 8,
data: [ 'admin.settings.set', { hash: 'post_link_list', values: {} } ]
}
]
in index , the hook
settings saved for { plugin: 'post_link_list', settings: {}, caller: { uid: 1 } }