<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Petar Borisovski</title>
    <link>/</link>
    <description>Recent content on Petar Borisovski</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 10 Oct 2021 00:00:00 +0000</lastBuildDate><atom:link href="/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to add options from a source model to an input field in a Form UI component</title>
      <link>/posts/dynamicinputfielduicomponent/</link>
      <pubDate>Sun, 10 Oct 2021 00:00:00 +0000</pubDate>
      
      <guid>/posts/dynamicinputfielduicomponent/</guid>
      <description>In the Magento backend, when we usually want to have a dropdown field with pre-defined data that we can select from, we use a SourceModel.
If we want to use a SourceModel in a UI component, lets say in a Form component, we would set the formElement of the field that we want to use to be formElement=&amp;quot;select&amp;quot;. Inside the field element we would specify our source model under
&amp;lt;field name=&amp;#34;test&amp;#34; formElement=&amp;#34;select&amp;#34;&amp;gt; &amp;lt;formElements&amp;gt; &amp;lt;select&amp;gt; &amp;lt;settings&amp;gt; &amp;lt;options class=&amp;#34;{{PATH_TO_SOURCEMODEL}}&amp;#34;/&amp;gt; &amp;lt;/settings&amp;gt; &amp;lt;/select&amp;gt; &amp;lt;/formElements&amp;gt; &amp;lt;/field&amp;gt; This is all fine when you want to have a select element in your configuration.</description>
    </item>
    
    <item>
      <title>About me</title>
      <link>/about/</link>
      <pubDate>Sun, 04 Jul 2021 00:00:00 +0000</pubDate>
      
      <guid>/about/</guid>
      <description>My name is Petar Borisovski and i am a Software developer. I am from Macedonia, currently living in Bad Homburg, Germany.
This is my personal website where i (occasionally) write about software related topics. If you want to stay in touch, leave a comment or reach me at Email.</description>
    </item>
    
  </channel>
</rss>
