4

We will see ${ $.$data.rowIndex } in cms_page_listing.xml like below.

<item name="0" xsi:type="string">${ $.$data.rowIndex }</item>

In Magento/Cms/Ui/Component/Listing/Column/PageActions.php, we also could find a ${ $.$data.title }.

'message' => __('Are you sure you wan\'t to delete a ${ $.$data.title } record?')

I can guess it is a way to get data, but what is the detailed meaning of ${ $.$data.(something) }? And how it works?


2017-10-16

Thanks the answer of PareshaU, we know it is a Template Literals in Magento.

But, the official guide is too general, anyone could give some special instructions?

  1. What's the content of $.$data and where its content come from?

  2. What is the work process of $.$data? For example, the ${ $.$data.rowIndex } in cms_page_listing.xml.

2

This is Template Literals in Magento. You can read more about it from here.enter link description here

  • Thanks for your answer, but the official guide is too general, could you give some special instructions? What's the content of $.$data and where its content come from? – Key Shang Oct 16 '17 at 7:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.