# Angular Element as Field Formatter

**URL:** <https://discuss.elastic.co/t/angular-element-as-field-formatter/92146>\
**Category:** Kibana\
**Created:** [July 6, 2017, 5:14pm UTC](https://discuss.elastic.co/t/angular-element-as-field-formatter/92146 "2017-07-06T17:14:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan\_t](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@bryan\_t](https://discuss.elastic.co/u/bryan_t)\
**Post date:** [July 6, 2017, 5:14pm UTC](https://discuss.elastic.co/t/angular-element-as-field-formatter/92146/1 "2017-07-06T17:14:27Z")

</div>

I am trying to make a field formatter that would be a dropdown menu with actions. I was wondering if it is possible to return an Angular element so that I can use Kibana's UI elements or Angular bootstrap.

Thanks.

---

<div class="post-metadata">

**Author:** ![thomasneirynck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thomasneirynck/32/23313_2.png) [@thomasneirynck](https://discuss.elastic.co/u/thomasneirynck)\
**Post date:** [July 7, 2017, 5:17pm UTC](https://discuss.elastic.co/t/angular-element-as-field-formatter/92146/2 "2017-07-07T17:17:47Z")

</div>

hi @bryan_t,

that sounds really clever. not sure if this will work, but you could give it a try 😉

I assume you would like to use this in a DataTable or something? If you return an angular element, I don't think it will get compiled when adding the contents to a table-cell.

Depending on the complexity of the actions, you could return a `<select>` element, and see how far that takes you.

---

<div class="post-metadata">

**Author:** ![bryan\_t](https://avatars.discourse-cdn.com/v4/letter/b/7bcc69/32.png) [@bryan\_t](https://discuss.elastic.co/u/bryan_t)\
**Post date:** [July 7, 2017, 7:09pm UTC](https://discuss.elastic.co/t/angular-element-as-field-formatter/92146/3 "2017-07-07T19:09:36Z")

</div>

Thanks, I just thought that you could do more things with an Angular element. I have been already been using a `<select>` tag as a replacement for a bootstrap dropdown.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 4, 2017, 7:10pm UTC](https://discuss.elastic.co/t/angular-element-as-field-formatter/92146/4 "2017-08-04T19:10:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
