<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Grid and Flexbox layout</title><link>https://community.appian.com/discussions/f/user-interface/27866/grid-and-flexbox-layout</link><description>Hello: 
 I am trying to create an interface - similar to the Maintenance Request example in Appian but I would like to add a &amp;quot;Select&amp;quot; checkbox that is (vertically) aligned in the center with the text (in this case, 2019 Lexus E350). Also, is there a way</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Grid and Flexbox layout</title><link>https://community.appian.com/thread/108395?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 17:18:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8a621c35-a3f2-4163-98ed-dba40e037467</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;&lt;span class="emoticon" data-url="https://community.appian.com/cfs-file/__key/system/emoji/1f62d.svg" title="Sob"&gt;&amp;#x1f62d;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid and Flexbox layout</title><link>https://community.appian.com/thread/108393?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 17:12:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bbaa317-cacd-46a2-8a1c-f9d3179fe5ff</guid><dc:creator>MaNa</dc:creator><description>&lt;p&gt;Thank you, Aman and Naresh!! The solution that I was looking for is Naresh&amp;#39;s Option 2. &amp;nbsp;Aman&amp;#39;s worked for alignment of the components but the checkbox value disappeared when the component lost focus - I realize that is a simple fix but for a newbie it&amp;nbsp;took time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid and Flexbox layout</title><link>https://community.appian.com/thread/108392?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 16:55:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:da5227d3-6e34-4e9d-922f-e67da8f5a43e</guid><dc:creator>Naresh</dc:creator><description>&lt;p&gt;Try with this code It might helpful.&lt;/p&gt;
&lt;p&gt;Option 1&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;a!localVariables(
  local!isSelected: false,
  a!sectionLayout(
    label: &amp;quot;Select a Product&amp;quot;,
    isCollapsible: true,
    contents: {
      a!cardLayout(
        contents: {
          a!sideBySideLayout(
            alignVertical: &amp;quot;MIDDLE&amp;quot;,
            items: {
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                  align: &amp;quot;RIGHT&amp;quot;,
                  value: {
                    a!richTextIcon(
                      showWhen: not(local!isSelected),
                      icon: &amp;quot;square-o&amp;quot;,
                      size: &amp;quot;MEDIUM&amp;quot;,
                      linkStyle: &amp;quot;STANDALONE&amp;quot;,
                      link: a!dynamicLink(
                        saveInto: {
                          a!save(local!isSelected, not(local!isSelected))
                        }
                      )
                    ),
                    a!richTextIcon(
                      showWhen: local!isSelected,
                      icon: &amp;quot;check-square-o-alt&amp;quot;,
                      size: &amp;quot;MEDIUM&amp;quot;,
                      linkStyle: &amp;quot;STANDALONE&amp;quot;,
                      link: a!dynamicLink(
                        saveInto: {
                          a!save(local!isSelected, not(local!isSelected))
                        }
                      )
                    ),
                    char(9),
                    a!richTextItem(
                      text: &amp;quot;2019 Lexus ES350&amp;quot;,
                      style: &amp;quot;STRONG&amp;quot;,
                      size: &amp;quot;MEDIUM&amp;quot;
                    ),
                    char(10),
                    a!richTextItem(
                      text: &amp;quot;Time for tire rotation&amp;quot;
                    )
                  }
                )
              )
            }
          )
        },
        height: &amp;quot;AUTO&amp;quot;,
        style: &amp;quot;ACCENT&amp;quot;,
        marginBelow: &amp;quot;STANDARD&amp;quot;
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Option 2&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="xml"&gt;a!localVariables(
  local!isSelected: false,
  a!sectionLayout(
    label: &amp;quot;Select a Product&amp;quot;,
    isCollapsible: true,
    contents: {
      a!cardLayout(
        contents: {
          a!sideBySideLayout(
            alignVertical: &amp;quot;MIDDLE&amp;quot;,
            items: {
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                  align: &amp;quot;LEFT&amp;quot;,
                  value: {
                    a!richTextIcon(
                      showWhen: not(local!isSelected),
                      icon: &amp;quot;square-o&amp;quot;,
                      size: &amp;quot;MEDIUM&amp;quot;,
                      linkStyle: &amp;quot;STANDALONE&amp;quot;,
                      link: a!dynamicLink(
                        saveInto: {
                          a!save(local!isSelected, not(local!isSelected))
                        }
                      )
                    ),
                    a!richTextIcon(
                      showWhen: local!isSelected,
                      icon: &amp;quot;check-square-o-alt&amp;quot;,
                      size: &amp;quot;MEDIUM&amp;quot;,
                      linkStyle: &amp;quot;STANDALONE&amp;quot;,
                      link: a!dynamicLink(
                        saveInto: {
                          a!save(local!isSelected, not(local!isSelected))
                        }
                      )
                    )
                  }
                )
              ),
              a!sideBySideItem(
                item: a!richTextDisplayField(
                  labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                  align: &amp;quot;RIGHT&amp;quot;,
                  value: {
                    a!richTextItem(
                      text: &amp;quot;2019 Lexus ES350&amp;quot;,
                      style: &amp;quot;STRONG&amp;quot;,
                      size: &amp;quot;MEDIUM&amp;quot;
                    ),
                    char(10),
                    a!richTextItem(
                      text: &amp;quot;Time for tire rotation&amp;quot;
                    )
                  }
                )
              )
            }
          )
        },
        height: &amp;quot;AUTO&amp;quot;,
        style: &amp;quot;ACCENT&amp;quot;,
        marginBelow: &amp;quot;STANDARD&amp;quot;
      )
    }
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Grid and Flexbox layout</title><link>https://community.appian.com/thread/108391?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 16:44:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f5503ec1-1448-4fe1-a141-6095d654b7de</guid><dc:creator>Amaan Shekh</dc:creator><description>&lt;p&gt;try this&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;{
  a!cardLayout(
    contents: {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              /*this will work as margin*/
              a!richTextDisplayField(
                labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                value: { repeat(1, char(10)) },
                marginBelow: &amp;quot;NONE&amp;quot;
              ),
              a!checkboxField(
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                choiceLabels: { &amp;quot;&amp;quot; },
                choiceValues: { 1 },
                saveInto: {},
                validations: {}
              )
            }
          ),
          a!columnLayout(contents: {}),
          a!columnLayout(
            contents: {
              a!richTextDisplayField(
                labelPosition: &amp;quot;COLLAPSED&amp;quot;,
                value: {
                  a!richTextItem(
                    text: { &amp;quot;2019 Lexus OP&amp;quot; },
                    size: &amp;quot;LARGE&amp;quot;,
                    style: { &amp;quot;STRONG&amp;quot; }
                  ),
                  char(10),
                  a!richTextItem(
                    text: { &amp;quot;Lorem Ipsum Random text&amp;quot; },
                    size: &amp;quot;MEDIUM&amp;quot;
                  )
                },
                align: &amp;quot;CENTER&amp;quot;
              )
            }
          )
        }
      )
    },
    height: &amp;quot;AUTO&amp;quot;,
    style: &amp;quot;ACCENT&amp;quot;,
    padding: &amp;quot;EVEN_LESS&amp;quot;,
    marginBelow: &amp;quot;STANDARD&amp;quot;
  )
}&lt;/pre&gt;&lt;br /&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1677171219018v1.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>