Skip to content

Mendix widget to set / append an attribute of a domNode.

License

Notifications You must be signed in to change notification settings

rik-bos/SetAttribute

Repository files navigation

Contributing

For more information on contributing to this repository visit Contributing to a GitHub repository!

Typical usage scenario

Mendix does not allow the developer to change / set the value of an attribute in the Modeler. Use this widget to find domNodes (by a normal selector string, e.g. .class, #id, .mx-name-mxId) and set the value of an attribute. Further it is possible to append an attribute. This can be used to add custom classes / styling to domNodes that are not directly usable.

##Examples

Use domNode: input to find input widgets and set attribute: type and get the right mobile keyboard:

  • datetime
  • email
  • month
  • number
  • range
  • search
  • tel
  • url

Use attribute: class and append: true to add classes

Use attribute: style and append: true to add css

Widget configuration Custom attribute Add style

Known bugs

None