question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

is there api to get itemComponent to be used later in any other function,

See original GitHub issue

hi @tiberiuzuld , is there any function which will give me itemComponent object, to be able to use pushItem api i need itemComponent, but i found that only in initItem callback function, itemComponent is available, so i save the itemComponent is item as below to be used later.

initItem(item, itemComponent) { item["itemComponent"] = itemComponent; }

but i think its not good way, as item has itemComponent, and itemComponent has item,

i am using gridster from angularjs as our application is not yet into angular,

can you suggest me on how to get itemComponent directly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
shyambhiogadecommented, May 31, 2018

yes, this is one way, but every time, it will have to iterate through all items, i would prefer if there is any optimized way/api of getting itemComponent, @tiberiuzuld do you have any suggestion.

0reactions
shyambhiogadecommented, Jun 3, 2018

@tiberiuzuld can you please help

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction to web APIs - Learn web development | MDN
First up, we'll start by looking at APIs from a high level — what are they, how do they work, how to use...
Read more >
Use Getters and Setters to Modify Data - Salesforce Developers
Annotate either the getter or the setter with @api , but not both. It's a best practice to annotate the getter. To hold...
Read more >
Display a List Using the FlatList Component in React Native
React Native's `FlatList` component renders list items that can be displayed on the screen, and has features like scrolling, header/footer ...
Read more >
APIs for Beginners - How to use an API (Full Course / Tutorial)
What is an API ? Learn all about APIs (Application Programming Interfaces) in this full tutorial for beginners. You will learn what APIs...
Read more >
Integrating with Other Libraries - React
To prevent React from touching the DOM after mounting, we will return an empty ... that we can use jQuery trigger() API to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found