vue-recyclerview icon indicating copy to clipboard operation
vue-recyclerview copied to clipboard

Parent component not accessable

Open TamerZorba opened this issue 8 years ago • 2 comments

I'am trying to access methods defined on the main component, is it missing or it just the documentation is not completed !!

this should help with global methods for all items.

TamerZorba avatar Jun 17 '17 00:06 TamerZorba

Try this way

<RecyclerView 
      :options="options"
    ></RecyclerView>
data () {
return { 
  options: {
        props: {
          $parent: this
        }
      }
  }
}

hilongjw avatar Jun 18 '17 08:06 hilongjw

i think its not working, i couldn't find any related data inside item object, can you plz describe how to access $parent from (Item) scope.

TamerZorba avatar Jun 18 '17 09:06 TamerZorba