1.4.0 • Published 4 years ago

@tomorepo/editableelement v1.4.0

Weekly downloads
2
License
-
Repository
-
Last release
4 years ago

tomorepo/editableelement

Install dependency in your project

npm install @tomorepo/editableelement --save

Import component where you want to use it

import '@tomorepo/editableelement';

Use the component in your template

  <editable-element
    element="h1"
    text="This is an editable element"
    @component-updated="updateElement" />

Available Props

  • element - text - Default: 'h1' The base element of the editable component
  • text - text - Default: 'Empty Heading' `The initial text of the element before it is edited

Events

  • component-updated - Returns a string with the new value
1.4.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago