qontu / ngx-inline-editor

Native UI Inline-editor Angular (4.0+) component
https://qontu.github.io/ngx-inline-editor
MIT License
164 stars 90 forks source link

Custom Display Templates #73

Open jongunter opened 7 years ago

jongunter commented 7 years ago

Hi there, great library! It'd be nice if I could add some custom formatting/HTML when the components are in display mode.

For example, next to the username, I would want to display a user icon, but not in editing mode.

<inline-editor type="text" [(ngModel)]="account.username">
   <i class="fa fa-user"></i>
   {{ account.userName }}
</inline-editor>
tonivj5 commented 7 years ago

Hi! Thanks for your feedback, this feature is in our roadmap, but there are more important things to do yet.

If you would want to implement it, it was awesome 😄 There is a PR open https://github.com/qontu/ngx-inline-editor/pull/35 that implements something similar using ng-content