Questions tagged [uielement]

Denotes questions regarding Magento Ui Element

Filter by
Sorted by
Tagged with
0 votes
0 answers
49 views

Magento 2.4 how to create a custom region select at checkout

Good morning, does anyone know how I can create a custom selection in the checkout of the type "Magento_Ui/js/form/element/region" something like the default selection of "region" ...
GStiven's user avatar
  • 41
1 vote
0 answers
292 views

Magento 2 uiComponent multiple instance

I have a view with two templates that use the same uiComponent with Knockout Js. I spent hours trying to discover how to do not share the observables between two different templates. example: <div ...
martin's user avatar
  • 49
0 votes
1 answer
840 views

input element not getting disabled when I change it's property "disabled"

I have created a custom module to add some fields to the order checkout however I have some troubles enabling them conditionally. I have a radio button and 4 elements When the radio is clicked, ...
gabtzi's user avatar
  • 656
0 votes
1 answer
871 views

Magento 2 : Ui form element enable/disable on store switcher

In Magento 2.3.1, I want to do like : If all store view, then input text should be enable. Othervise, input text should be disable. I follow this answer : click here But, still I'm not getting ...
Emipro Technologies Pvt. Ltd.'s user avatar
5 votes
0 answers
1k views

Move Elements on Magento 2 Product Page

I have the Porto Theme installed on my website using Magento 2.2.5. I would like to move a couple of Elements on the Product page but only for specific products. I have attached a screenshot of how ...
A.Woodward's user avatar
0 votes
0 answers
400 views

Magento 2 Checkout - How to replace labels with placeholders

In the Magento 2 Checkout, i need to replace the form input labels (Firstname, Lastname, City etc) with placeholders (text that will show inside the input box). I found this solution https://...
arjus's user avatar
  • 131
1 vote
0 answers
175 views

Change the size of the column in product detail page

I am using Magento 2.2.4. I need to change the size of the column for product description under the id="maincontent". I need to make it 70% of the width and align center. I am writing a custom theme ...
SMash's user avatar
  • 227
3 votes
1 answer
826 views

Which one of the elements automatically render all it's children in layout (m2)

automatically render all it's children <layout> <container> <block> <action> I feel like i've tried several now and they're not working for me. any of them. ugghhhh
getData's user avatar
  • 327
1 vote
0 answers
69 views

How to use renderer grid in magento2?

I've developed a custom module for magento1.9 , I'm doing the same for magento2 I'm able to have just a grid in admin page, also I have a form in admin page but I'm a bit stopped as I can't understand ...
java2dev's user avatar
1 vote
1 answer
819 views

FileUploader.js throws TypeError: postData.data.set is not a function in Safari

In my custom form I use the file uploader element: <field name="image"> <argument name="data" xsi:type="array"> <item name="config" ...
Siarhey Uchukhlebau's user avatar
16 votes
1 answer
2k views

Magento 2.1 Ui Component form field Token input

I want to add tags in an input field , in a similar fashion as it is done in product form to add catageories - which is show in the image below. This much task I have achieved by adding field ...
Verdu's user avatar
  • 1,730
6 votes
3 answers
6k views

Magento 2: How can I get the parent UI Element?

I have a UI Element that has children. Is it possible for one UI Element to get the instantiated parent element? I know there is a property called parentName, but that simply returns a string. ...
Giel Berkers's user avatar
  • 12.3k
1 vote
1 answer
2k views

Magento 2 Mass Product Action module (append text to products name , update price....)

I need the code of the module magento 2 which allows to add mass action (append text to products name , update price....) I am blocked help me please
Creativity Group's user avatar
1 vote
1 answer
206 views

Filter is not display after custome product_listing.xml

I am trying to add new column in magento 2.1.3 admin -> Catalog -> Product grid I used following code to display sale column in product grid <?xml version="1.0" encoding="UTF-8"?> <!...
Vaibhav Ahalpara's user avatar
1 vote
2 answers
346 views

Magento 2: Are there Downsides to Omitting the `new` Keyword for Magento's Javascript Objects?

I've just discovered that Magento 2's UI Component javascript constructor functions are built in such a way that they (seem to?) behave the same with, and without, the new keyword; UiElement = ...
Alana Storm's user avatar
  • 44.4k
3 votes
0 answers
266 views

What does the "initUnique" Method setup in uiElement Objects?

In Magento 2's uiElement objects, one of the initialization methods is named initUnique initialize: function () { this._super() .initObservable() .initModules() ....
Alana Storm's user avatar
  • 44.4k
0 votes
1 answer
458 views

Magento 2: Are uiClass/uiElement Imports/Exports order sensitive?

Magento's uiClass/uiElement objects have a feature that allow them, at the time of instantiation, to populate a property of their own (imports) from a uiRegistry registered object, or populate a ...
Alana Storm's user avatar
  • 44.4k
11 votes
1 answer
5k views

What Are the Import/Exports `defaults` for in a uiElement Object?

In many of Magento 2's UI Element view model constructors, the defaults array will have an imports or exports property. return Collection.extend({ defaults: { //... imports: { ...
Alana Storm's user avatar
  • 44.4k