New answers tagged

0

Try with below code, add wysiwyg config data in component <field name="description" formElement="wysiwyg" sortOrder="90"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="source" xsi:type="...


2

I figured it out. I had to remove return Component.extend({ and just create a normal javascript object and return it. define([ "uiComponent", // <-- uiComponent has to get called first!!! Otherwise you get `[ERROR] Failed to load the "Magento_Checkout/js/view/minicart" component.` "jquery" ], function(Component, $) { ...


1

That is because the order of the arguments you are passing to define is wrong. Try the following: define([ 'uiComponent', 'Magento_Customer/js/customer-data', 'jquery', 'ko', 'underscore', 'inputNumber', // HERE 'sidebar', 'mage/translate', 'mage/dropdown' ], function (Component, customerData, $, ko, _, inputNumber) { '...


2

Use these two classes in your anchor tag <a href="#" class="action primary">Text</a>


0

I checked the code, the Action column seems be meant to be the last column. The reason you have this is because the list actions, <ul> tag is positioned absolute, whereas the closest relative element is .admin__data-grid-outer-wrap, so the ul's position will be aligned with that relative element. No matter what the last column is, the ul will always be ...


0

So for all of you struggling with this, here is another "solution". I combined the answers above to the one that works for me: My item url looks like this: specialshipment/item/edit/id/172/key... this important to understand because you need to retrieve the id and not the entity_id as was my first mistake. Because I needed to hide my dropdown in ...


1

Most likely, you've got the same ID of toggle set on your WYSIWYG editors. Take a look at where the button is built in \Magento\Framework\Data\Form\Element\Editor, particularly where the element's ID is set: protected function _getToggleButtonHtml($visible = true) { $html = $this->_getButtonHtml( [ 'title' => $this->translate(...


0

In your UI listing file, you should add the custom columns under the columns node and add the same name as in the 3rd party module's 'columns' node (so when files are loaded, the content is merged under the same keys). For example my Vendor/Module/view/adminhtml/ui_component/customer_listing.xml is adding the billing phone number column to the vendor/magento/...


0

Using the same code as you show us. Since the data in the sales_shipment table are either 1 or null. I have used the source model like below: <?php namespace Mbs\ShipmentGrid\Model\Config\Source; use Magento\Framework\Option\ArrayInterface; class EmailSent implements ArrayInterface { public function toOptionArray() { return [ ...


0

Thanks to Ben Crook. It's working! That's what I got. define([ 'jquery', 'ko', 'uiComponent', 'domReady!' ], function ( $, ko, Component ) { 'use strict'; / ... / return Component.extend({ defaults: { template: 'Magespace_Blog/blog' }, posts: ko.observable([]), initialize:...


0

You need to set this.posts as a KO observable and then update that. At the moment you are simply updating a JS object which will not inform KO to update the frontend. Within Component.extend add: posts: ko.observable(), Rather than this.posts = res.data; use this.posts(res.data) This will update this.posts with the new data, which will in turn update the ...


0

If I understand correctly, you want to show the options for a select UI component. I think this question have been answered here maybe this will help you.


0

I figured it out! The problem was that I was using Registry to pass the order IDs from my controller to the data provider. Using Magento\Framework\App\Request\DataPersistor instead to pass the data is a working solution. You can set the order ID array in the controller with $this->_dataPersistor->set("orderids", $orderIds); And fetch them in ...


Top 50 recent answers are included