28 Nov 2012 2:41 PM #1
Answered: access DOM element of touched data view item when tapped
When a user taps on the row of a DataView (not a List) I'm trying to set the style of the DIV that was tapped. I can see the div element off of the TARGET param (called target.dom) passed into the onDataviewItemTap function but I don't know what to do with it once I have it.
Was hoping I could do something like this.
-> target.dom.setStyle('font-weight:bold'); but I only see errors in the console.
I suspect I'm looking at this wrong. Can someone please school me?
28 Nov 2012 2:52 PM #2
I also tried target.setStyle('font-size: 35pt !important;'); but that didnt work either.-->
28 Nov 2012 4:09 PM #3Code:
target.setStyle('font-weight','bold') target.setStyle('font-size','35pt','important');I write English by translator.-->
28 Nov 2012 4:31 PM #4