-
-
Notifications
You must be signed in to change notification settings - Fork 691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Write documentation for JavaScript plugin mechanism #2250
Comments
Tried this as initial inspiration, worked pretty well! curl 'https://github.com/simonw/datasette/commit/452a587e236ef642cbc6ae345b58767ea8420cb5.diff' | \
llm -m 4 \
--system 'Write detailed end-user documentation explaining how to write JavaScript that interacts with Datasette based on this diff' Output:
|
It would be good if the buttons showed which one had been most recently selected here: That's from this plugin: document.addEventListener('datasette_init', function(ev) {
ev.detail.registerPlugin('panel-plugin', {
version: 0.1,
makeAboveTablePanelConfigs: () => {
return [
{
id: 'first-panel',
label: 'First panel',
render: node => {
node.innerHTML = '<h2>My 1st panel</h2><p>This is a custom panel that I added using a JavaScript plugin</p>';
}
},
{
id: 'second-panel',
label: 'Second panel',
render: node => {
node.innerHTML = '<h2>My 2nd panel</h2><p>This is a custom panel that I added using a JavaScript plugin</p>';
}
}
]
}
});
}); |
Refs:
Added in 452a587
The text was updated successfully, but these errors were encountered: