B.6 Bind Promotion

Special bind commands are available to assist in the creation of example-based palettes. The bind:promote attribute tags parts of an SVG drawing so they can participate in the drawing editor’s example palettes.

It has the following attribute:

  • bind:promote: A comma-separated list of promotion commands, where each promotion command consists of the following:

    sourceAttr[->destAttr]

    When an element possessing a bind:promote attribute is selected in the example palette, the value of the source attribute is copied to the currently selected objects in the drawing.

    If the arrow (‑>) and destAttr are present, the attribute is renamed.