x-bubbles

XBubbles provides a simple way to create set of editable elements.

View the Project on GitHub

XBubbles custom element

XBubbles provides a simple way to create set of editable elements.

All you need to do is create an element set and specify the necessary conditions.

<div class="bubbles" is="x-bubbles" tabindex="0">
  123,456,789
</div>

This will create a set of elements

123,456,789

Options

Settings you can declare the function via options() or via data attributes.

For example:

<script>
function bubbleDeformation(node) {
  return node.innerText;
}
</script>
<div is="x-bubbles"
  data-separator="/[,]/"
  data-selection="off"
  data-class-bubble="bubble"
  data-bubble-deformation="bubbleDeformation">
  123,456,789
</div>

Events

Properties

Methods