Skip to content

Dynamic creation and view of nested lists. #325

Answered by ArneNostitz
ArneNostitz asked this question in Q&A
Discussion options

You must be logged in to vote

🤯 found what i was looking for the past few months in the example vault. this is one of the best days in the past few weeks!!

this is an example of a nested list of referral contacts.

```js-engine
const mb = engine.getPlugin('obsidian-meta-bind-plugin').api;

const tableOptions = {
	bindTarget: mb.createBindTarget('frontmatter', context.file.path, ['contact']),
	tableHead: ['Referred by', 'Date', 'Note'],
	columns: [
		'INPUT[suggester(optionQuery(#example-note)):scope^referred-by]',
		'INPUT[datePicker:scope^referred-date]',
		'INPUT[text:scope^activity]',
	],
};

const mountable = mb.createTableMountable(context.file.path, tableOptions);

mb.wrapInMDRC(mountable, container, component);

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ArneNostitz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant