Interface IHasAttributes<Z>

All Known Subinterfaces:
IAccordion, IAccordionSection, IAppForm, IButton, ICell, ICircle, IDateField, IDateRangeField, IDateTimeField, IDateTimeRangeField, IDivider, IEllipse, IEventDataSection, IForm, IFormContent, IFragment, IGroup, IHasFill<Z>, IHasStroke<Z>, IIFrame, ILine, IMultiInputField, IMultiSelectField, INumericField, IPage, IPath, IProgressBar, IRect, ISection, ISelectField, IStepper, ISubmitButton, ISVG, ISVGElement<Z>, ISvgIcon, ITableRow, IText, IText, ITextAreaField, ITextField, ITimeField, ITimelineItem, ITitle, ITree, ITreeItem, IVerticalContainer

public interface IHasAttributes<Z>
  • Method Summary

    Modifier and Type
    Method
    Description
    default Z
    attr(String attribute, int value)
    Set an attribute on this element.
    default Z
    attr(String attribute, int value, String unit)
    Set an attribute on this element.
    attr(String attribute, Color value)
    Set a Color attribute on this element.
    attr(String attribute, String value)
    Set an attribute on this element.
    default Z
    attr(String attribute, String value, String unit)
    Set an attribute on this element.
    attr(String attribute, Map<String,String> value)
    Set a Map attribute on this element
  • Method Details

    • attr

      Z attr(String attribute, String value)
      Set an attribute on this element.
      Parameters:
      attribute - the name of the attribute
      value - the value of the attribute
      Returns:
      this, for chaining
    • attr

      Z attr(String attribute, Color value)
      Set a Color attribute on this element.
      Parameters:
      attribute - the name of the attribute
      value - the value of the attribute
      Returns:
      this, for chaining
    • attr

      Z attr(String attribute, Map<String,String> value)
      Set a Map attribute on this element
      Parameters:
      attribute - the name of the attribute
      value - the value of the attribute
      Returns:
      this, for chaining
    • attr

      default Z attr(String attribute, String value, String unit)
      Set an attribute on this element.
      Parameters:
      attribute - the name of the attribute
      value - the value of the attribute
      unit - the unit of the value
      Returns:
      this, for chaining
    • attr

      default Z attr(String attribute, int value, String unit)
      Set an attribute on this element.
      Parameters:
      attribute - the name of the attribute
      value - the value of the attribute
      unit - the unit of the value
      Returns:
      this, for chaining
    • attr

      default Z attr(String attribute, int value)
      Set an attribute on this element.
      Parameters:
      attribute - the name of the attribute
      value - the value of the attribute
      Returns:
      this, for chaining