Replicate record search criteria with magnifying glass

Certified Senior Developer

Hi All,

i want to replicate the below section in another interface manually.  Which SAIL component can i use? 

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Lead Developer

    ,

    You probably cannot place that icon inside the text field, (unless you try something what Stewart has suggested above)

    I believe the nearest you could do is to put the icon and text field side by side

    something like this 

    a!sideBySideLayout(
      alignVertical: "MIDDLE",
      items: {
        a!sideBySideItem(
          width: "MINIMIZE",
          item: a!richTextDisplayField(
            value: a!richTextIcon(
              icon: "search",
              color: "SECONDARY",
              size: "MEDIUM"
            )
          )
        ),
        a!sideBySideItem(
          item: a!textField(
            placeholder: "Search course by name or id"
          )
        )
      }
    )

    Hope it helps ! 

Reply
  • 0
    Certified Lead Developer

    ,

    You probably cannot place that icon inside the text field, (unless you try something what Stewart has suggested above)

    I believe the nearest you could do is to put the icon and text field side by side

    something like this 

    a!sideBySideLayout(
      alignVertical: "MIDDLE",
      items: {
        a!sideBySideItem(
          width: "MINIMIZE",
          item: a!richTextDisplayField(
            value: a!richTextIcon(
              icon: "search",
              color: "SECONDARY",
              size: "MEDIUM"
            )
          )
        ),
        a!sideBySideItem(
          item: a!textField(
            placeholder: "Search course by name or id"
          )
        )
      }
    )

    Hope it helps ! 

Children