# View type of UI element in Design mode

**URL:** <https://forum.code.org/t/view-type-of-ui-element-in-design-mode/14358>\
**Category:** Website and Tools Questions\
**Created:** [February 13, 2018, 5:09am UTC](https://forum.code.org/t/view-type-of-ui-element-in-design-mode/14358 "2018-02-13T05:09:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![alex.jacoby](https://avatars.discourse-cdn.com/v4/letter/a/f05b48/32.png) [@alex.jacoby](https://forum.code.org/u/alex.jacoby)\
**Post date:** [February 13, 2018, 5:09am UTC](https://forum.code.org/t/view-type-of-ui-element-in-design-mode/14358/1 "2018-02-13T05:09:11Z")

</div>

Is there any way to tell what _type_ of UI element an existing widget is, other than by visual inspection? Currently if a student selects an item in design mode, they can view its properties, id, and events, but nothing tells them whether it’s an image, button, label, text input, etc.

I feel that with time they (and I) will be able to easily distinguish just by appearance, but as appearances can be so highly customized, it’s not always obvious to us at this point.

Thanks,  
Alex

---

<div class="post-metadata">

**Author:** ![kaitie\_o\_bryan](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/kaitie_o_bryan/32/2278_2.png) [@kaitie\_o\_bryan](https://forum.code.org/u/kaitie_o_bryan)\
**Post date:** [February 13, 2018, 12:09pm UTC](https://forum.code.org/t/view-type-of-ui-element-in-design-mode/14358/2 "2018-02-13T12:09:49Z")

</div>

Great question @alex.jacoby! I don’t think there is a field that says what type of UI element is being used…

Typically I see students get most confused between a label and a text input or text area. Once they see that the text input or text area may be edited by users, they tend to have a better eye for the difference.

I can put in a request for that to be added to design mode though, I can see how that would be useful for learners!

---

<div class="post-metadata">

**Author:** ![anmrobnott](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/anmrobnott/32/505_2.png) [@anmrobnott](https://forum.code.org/u/anmrobnott)\
**Post date:** [February 13, 2018, 2:20pm UTC](https://forum.code.org/t/view-type-of-ui-element-in-design-mode/14358/3 "2018-02-13T14:20:57Z")

</div>

@alex.jacoby

The default name of the element is the element type with a number i.e. button1, text\_input2, screen3 etc. So I see this as an opportunity to reinforce the importance of selecting descriptive and meaningful id names. I encourage students to include the element type in the id name. So label1 becomes scoreLabel or text\_input2 on screen2 becomes name\_TxtInpt\_Scr2. I realize it can be time-consuming but documentation is part of programming. Since I am THAT teacher, I will not help students debug code with the default id names.

Andrea
