[QUESTION] model.get('toolbar') always return null
See original GitHub issueHi @artf I am trying to add a custom toolbar to my custom component without changing the default toolbar. So I expect it to be like [movable, copyable, removable, newToolbar]. I use this #266 as a reference.
model: {
// ...
initToolbar () {
const tb = this.get('toolbar')
console.log(tb) // Return null
tb.unshift({
attributes: { class: 'fa fa-plane' },
command: 'some-command'
})
this.set('toolbar', tb)
},
// ...
}
But strangely this.get('toolbar')
always return null.
Is this something normal?
I got this instead
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Android: getSupportActionBar() always returns null in ...
The demo code is doing what you are saying, and it crashes with an NPE. It does the same thing in my app...
Read more >Bitmap | Android Developers
If the conversion is not supported, or the allocator fails, then this returns NULL. The returned bitmap has the same density and color...
Read more >Selected Items from batch enabled Grid always null on POST ...
I have a Grid with batch editing enabled. It also features a custom toolbar with an additional button: 'Archive'.
Read more >API Reference - Tableau Help
This section describes classes and methods of the Tableau JavaScript API. The JavaScript API files are located on the server (including Tableau Cloud...
Read more >Google Visualization API Reference | Charts
Adds a new column to the data table, and returns the index of the new column. All the cells of the new column...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I am so sorry, it’s my mistake. Thanks for your guidance
The
extendFn
was added from https://github.com/artf/grapesjs/releases/tag/v0.14.61 in the demo you’re using the 0.14.57