Skip to main content
cyk's user avatar
cyk's user avatar
cyk's user avatar
cyk
  • Member for 11 years
  • Last seen more than 1 year ago
awarded
awarded
awarded
awarded
awarded
answered
Loading…
awarded
awarded
awarded
answered
Loading…
comment
Magento 2: Is there a way to add a child block when the parent isn't defined in a layout?
I'm currently on 2.1.8, and the addChild signature is actually public function addChild($alias, $block, $data = []), where the alias and block are strings, and the createBlock is the first thing done inside. So you call it like $this->addChild('my-alias', 'Vendor\Module\Block\Name').
awarded
asked
Loading…
answered
Loading…
awarded
revised
Magento 2 @escapeNotVerified
add documentation source for magento 2.1
Loading…
suggested
Approve
comment
Providing options to an InlineEdit Dropdown Select
Great suggestion, this does work in that it fills the dropdown with the stores. However, it no longer shows the store before activating the inline editor. I tried adding the class back to the column, and moving the options to different levels, but they seem to conflict. I'm only able to get one to work at a time--either the stores display in the grid on load, or they display in the dropdown select on edit.
Loading…