1. #1
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    497
    Answers
    20
    Vote Rating
    41
    BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about

      0  

    Default Answered: access DOM element of touched data view item when tapped

    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?

    Thanks,
    John
    -->

  2. Code:
    target.setStyle('font-weight','bold')
    target.setStyle('font-size','35pt','important');

  3. #2
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    497
    Answers
    20
    Vote Rating
    41
    BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about

      0  

    Default


    I also tried target.setStyle('font-size: 35pt !important;'); but that didnt work either.
    -->

  4. #3
    Sencha User
    Join Date
    Apr 2010
    Location
    China
    Posts
    227
    Answers
    64
    Vote Rating
    20
    haduki will become famous soon enough haduki will become famous soon enough

      0  

    Default


    Code:
    target.setStyle('font-weight','bold')
    target.setStyle('font-size','35pt','important');
    I write English by translator.
    -->

  5. #4
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    497
    Answers
    20
    Vote Rating
    41
    BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about BostonMerlin has a spectacular aura about

      0  

    Default


    thanks!
    -->

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar