[QUESTION] How to get child object ?
Question
Hi @artf i want to ask about get some child from current model, let's say
...
initToolbar() {
var model = this;
...
in that source code, can i get child object like get parent object model.collection.parent ?
thank you, and have a nice day
Answers (2)
Sure
model.get('components').each(child => console.log(child))
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1792
[Question] Exclude some components from final html (Multi-level)
Hi, I have a question about how to exclude HTML from editor->getHtml(). My structure is something like that. ParentChild -- Child --- Child...
Issue #399
[Question] Can i push toolbar in current modal and current modal child?
Hello again @artf , i confuse about push toolbar in the element with specific class (ex: modal-trigger) the element code is : and in the /s...
Issue #786
How to get the next and previous models/elements of selected element
I am cloning an element. I want to get the next element or previous element. By this I mean to say that How can I get the model or How shou...
Issue #1210
[Question] Replace Devices icon ASP.net / Javascript
Bonjour, I want replace icon for selected devices like in preset-webpage but i don't understand why this code doesn't work and nothing appe...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.