Skip to main content
bduffy323
Inspiring
October 6, 2011
Answered

determining the type/class of a page element

  • October 6, 2011
  • 1 reply
  • 470 views

Thought this would be pretty simple but after poking around the internet for a bit I haven't found any solution. Its a simple question, I want to find out if a pageItem's type is a textbox or rectangle or polygon etc etc. Any ideas?

This topic has been closed for replies.
Correct answer absqua

pageItem.getElements()[0].constructor.name

1 reply

absquaCorrect answer
Inspiring
October 6, 2011

pageItem.getElements()[0].constructor.name