0

I'm wondering how to insert many html elements into a cell in the product grid. I have an HTML template that serves style and other attributes via a JavaScript component, but I can only insert one HTML element into the cell.

Is it possible to insert multiple HTML elements?

0

While this may not be the most optimal answer, I decided to mimic what the thumbnail component does in module-ui/view/base/web/js/grid/columns thumbnail.js and /module-ui/view/base/web/templates/grid/cells/thumbnail.html.

I'm using a similar js file to build a row of <p> elements with css and insert into a <div>.

<div class="icons" html="$col.getIcons($row())"/>

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.