diff --git a/front/core/components/td-editable/index.html b/front/core/components/td-editable/index.html
new file mode 100644
index 000000000..14336126d
--- /dev/null
+++ b/front/core/components/td-editable/index.html
@@ -0,0 +1,4 @@
+
+
+
+
diff --git a/front/core/components/td-editable/index.js b/front/core/components/td-editable/index.js
new file mode 100644
index 000000000..49a4c3dcd
--- /dev/null
+++ b/front/core/components/td-editable/index.js
@@ -0,0 +1,44 @@
+import ngModule from '../../module';
+import Component from '../../lib/component';
+import './style.scss';
+
+export default class Controller extends Component {
+ constructor($element, $scope, $transclude) {
+ super($element, $scope);
+ let element = $element[0];
+ element.tabIndex = 0;
+
+ element.addEventListener('focus', () => {
+ $transclude((tClone, tScope) => {
+ this.field = tClone;
+ this.tScope = tScope;
+ this.element.querySelector('.field').appendChild(this.field[0]);
+ }, null, 'field');
+ element.classList.add('selected');
+ });
+
+ element.addEventListener('focusout', event => {
+ this.lastEvent = event;
+ let target = event.relatedTarget;
+ while (target && target.parentNode != element)
+ target = target.parentNode;
+
+ if (!target) {
+ this.tScope.$destroy();
+ this.field.remove();
+ element.classList.remove('selected');
+ }
+ });
+ }
+}
+
+Controller.$inject = ['$element', '$scope', '$transclude'];
+
+ngModule.component('vnTdEditable', {
+ template: require('./index.html'),
+ controller: Controller,
+ transclude: {
+ text: 'text',
+ field: '?field'
+ }
+});
diff --git a/front/core/components/td-editable/style.scss b/front/core/components/td-editable/style.scss
new file mode 100644
index 000000000..563590b3d
--- /dev/null
+++ b/front/core/components/td-editable/style.scss
@@ -0,0 +1,16 @@
+vn-td-editable {
+ cursor: pointer;
+ & > div.text-container{
+ width: 100%;
+ }
+
+ &.selected {
+ & > .text-container{
+ display: none;
+ }
+ }
+
+ vn-icon {
+ font-size: 1em;
+ }
+}
\ No newline at end of file