nerdexam
IBM

C2180-278 · Question #7

A mobile application developer needs to add a button to a Worklight application. Using the Rich Page Editor, the application developer drags a button widget onto the canvas of the existing page…

The correct answer is D. Find the Properties view for the the button and select the All tab. Then type getContactsButton in. See the full explanation below for the reasoning.

Question

A mobile application developer needs to add a button to a Worklight application. Using the Rich Page Editor, the application developer drags a button widget onto the canvas of the existing page. What should the application developer do to give the button the id "getContactsButton" and have it invoke the JavaScript function getContacts() when it is clicked?

Options

  • ARight-click on the canvas and bring up the properties dialog, type getContactsButton in the id field
  • BRight-click on the canvas and bring up the properties dialog, type getContactsButton in the id
  • CFind the Properties view for the the button and select the All tab. Then type getContactsButton in
  • DFind the Properties view for the the button and select the All tab. Then type getContactsButton in

How the community answered

(64 responses)
  • A
    6% (4)
  • B
    5% (3)
  • C
    14% (9)
  • D
    75% (48)

Community Discussion

No community discussion yet for this question.

Full C2180-278 Practice