ipf-required

Inserts an indicator that the element is required to the left of an element that is enabled for editing.

  • Format: ipf-required(Image,Size)

    Image can be an image URL, or omitted, in which case an asterisk is used. The required indicator does not take up any space in the container.

    Size can be omitted or a tuple with [Width, Height]. It can only be used when an image is supplied. Width and height scales the image to the specified length in the corresponding dimension. Using the width/height tuple can be useful to make the portal handle high density displays better, as the physical image can be larger than what is rendered on the device, thus preventing the fuzziness that otherwise could occur when the image is shown on a high density display. If used, the image would typically be twice the size in both dimensions compared to the desired rendered size.
  • Default parameter value: no required indicator
  • Not inherited
  • Examples: ipf-required on the enabled text fields:

    ipf-required(Images/required.png) on the enabled text fields: