1.2.0 • Published 2 years ago

@forter/editable v1.2.0

Weekly downloads
8
License
Apache-2.0
Repository
github
Last release
2 years ago

fc-editable

An element that give you edit powers!

Usage

<script>
   import '@forter/editable';
</script>

<fc-editable html>
  <span>fc-editable is editable.</span>
</fc-editable>

Properties

PropertyAttributeTypeDescription
disableddisabledbooleanIf the element is disabled
editableContentstringset the correct content by html property
editmodeeditmodebooleanIf the element is in edit mode
htmlhtmlbooleanIf the element is passing full html

Events

EventDescription
cancelevent with the text that was copied, example: {}
saveevent with the text that was copied, example: {"content": "fc-editable is editable."}

CSS Custom Properties

PropertyDescription
--fc-editable-border-activeeditable border, example: 1px dashed gold
--fc-editable-border-radiusradius. example: 30px radius.
--fc-editable-disabled-colordisabled color. example: gray
--fc-editable-paddingpadding. example: 20px
1.2.0

2 years ago

1.1.5

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago